摘要: 方法1:用匿名函数包裹 function test(str){ alert(str); } var a = "abcde" setTimeout(function(){ test(a); },3000); 方法2:用引号包裹需调用的函数 function test(str){ alert(str); 阅读全文
posted @ 2017-07-25 18:18 在谷歌上百度 阅读(495) 评论(0) 推荐(0) 编辑