定时器的使用

执行一次的定时器:

setTimeout("window.location.href= '/User/Order'", 3000);

循环执行的定时器:

 setInterval("Select_Message()", 20000);
Select_Message()指的是方法名,需要自己在写一个自己需要返回执行的方法。
原文地址:https://www.cnblogs.com/WZH75171992/p/6839721.html