Shell. 帶參數的函數. MSG=$1 # 代表shell的第1個參數 foo() { msg=$1 # function的第一個參數 echo "$msg" } 呼叫方式: foo "hello". 日期/時間
確定! 回上一頁