这个就是22点刷新,初始化后事件
setInterval(function(){
var refreshHours = new Date().getHours();
var refreshMin = new Date().getMinutes();
var refreshSec = new Date().getSeconds();
if(refreshHours=='22' && refreshMin=='0' && refreshSec=='0'){
location.reload();
}
}, 1000);