js 固定时间运行任务
作者:互联网
window.setInterval(function(){ var refreshHours = new Date().getHours(); var refreshMin = new Date().getMinutes(); var refreshSec = new Date().getSeconds(); if(refreshHours=='0' && refreshMin=='0' && refreshSec=='0'){ // 指定每天凌晨做的事情 } }, 1000);
标签:&&,refreshMin,js,var,固定,Date,new,refreshHours,运行 来源: https://www.cnblogs.com/pythonClub/p/16476714.html