首页 > 网站 > WEB开发 > 正文

setTimeout方法

2024-04-27 14:06:10
字体:
来源:转载
供稿:网友

setTimeout方法

//不建议传递字符串

setTimeout(alert("hello"),1000);

//推荐调用方式

setTimeout(function(){alert("hello");},1000);


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表