摘要:
1、字符串拼接var str = 'aaa';setTimeout('alert(' + str + ')', 1000);2、匿名函数setTimeout(function() {someFun(param1)}, 100);3、闭包方式function someFun (obj) { return function() {alert($(obj).length);}}setTimeout(someFun(this), 100);//orvar test = someFun(this);setTimeout(test, 100);4、函数内部使 阅读全文