asp.net相似於js中的setTimeOut()的函數做用?asp.net
插入這行便可,定時2秒,再運行下一步;dom
System.Threading.Thread.Sleep(2000);
加個隨機數函數
Random ran = new Random(); int RandKey = ran.Next(500, 2000); System.Threading.Thread.Sleep(RandKey);