摘要:
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、函数内部使 阅读全文
posted @ 2012-05-30 23:06
Wiliz
阅读(300)
评论(0)
推荐(0)

浙公网安备 33010602011771号