setTimeout(function(){ location.href = location.href; },1000) 1000就是1秒; location.href = location.href;就是刷新当前页面