谁能告诉我为什么截止日期一到就没有重置(即“其他”部分)?
var timeInMinutes = 1;
var currentTime = Date.parse(new Date());
var deadline = localStorage.deadline;
if(deadline) {
deadline = new Date(deadline);
}else {
deadline = new Date(Date.now() + timeInMinutes*60*1000);
localStorage.deadline = deadline;
}
谢谢。