js 延时


alert(1);
setTimeout(function(){alert(2);}, 1000);
setTimeout(function(){alert(3);}, 2000);

原文地址:https://www.cnblogs.com/hellowzd/p/4175193.html