setTimeout【注:out的'o'是小写】如果setTimeout(function,mill)中的function带参数,则定义的毫秒树mill会失效,function方法会立即执行解决方法:把参数定义为"全局变量"进行操作,或者不要单独写一个方法,直接再同一个方法内直接写function函数,例如本例中的第一个setTimeout;例子1: var operations&nbs
#!/bin/bashname=$1old=$2if [[ $# -ne 2 ]];then echo "the test must input 2 nu!!"echo $#exit 0fiecho "my name is ${name}!"echo "i'm ${old} yeas old!"if [[ ${old} <30 ]];thenecho "you are so yunng!"e