setTimeout( function(){ //add your code}, 5 * 1000 );//延迟5000毫米 转载于:https://www.cnblogs.com/dotnetHui/p/8080048.html