setTimeout(getdata(),1000); //延迟一秒执行getdata()函数 转载于:https://www.cnblogs.com/snailaj/archive/2013/05/01/3053167.html