-- 参考脚本,做个「定时刷新-每秒刷新-判断当前时间」是否执行;
setInterval(function() {
var myDate = new Date();
var a = myDate.getHours(); //获取当前小时数(0-23)
var b = myDate.getMinutes(); //获取当前分钟数(0-59)
var c = myDate.getSeconds(); //获取当前秒数(0-59)
var d = a + ":" + b + ":" + c;
if (d == "12:00:00") {
location.reload();
}
}, 1000);
——————————————————————