var int=self.setInterval(function(){ // 这个方法是说在延迟两秒后执行大括号里的方法 location.reload(); // 这个方法是刷新当前页面 },2000) //这里2000代表两秒