//延时器,2秒后执行函数

function test(){
 alert("aaaa");
}

setTimeout(function () { test(); }, 2000);
//或者
setTimeout('test()',2000);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-11-26
  • 2021-07-20
  • 2021-04-20
  • 2021-07-08
猜你喜欢
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2021-12-02
  • 2021-09-26
  • 2021-09-26
  • 2022-12-23
相关资源
相似解决方案