方法1:用匿名函数包裹 
function test(str){ 
alert(str); 
var a = "abcde" 
setTimeout(function(){ 
test(a); 
},3000); 
 
方法2:用引号包裹需调用的函数 
function test(str){ 
alert(str); 
var a = "abcde" 
setTimeout("test('+a+')",3000); 

相关文章:

  • 2021-08-31
  • 2021-09-22
  • 2021-09-21
  • 2021-11-01
  • 2021-12-04
  • 2021-09-05
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2021-07-08
  • 2022-01-10
  • 2022-12-23
  • 2021-12-14
  • 2018-07-11
相关资源
相似解决方案