I need to update every second a given datatime.(我需要每秒更新给定的数据时间。)
It's not necessary a today date, that can be "October 11, 2017 08:01:29"(今天的日期没有必要,可以是“ 2017年10月11日08:01:29”)
Something like this I suppose, but I lack of elements.(我想是这样的,但是我缺乏元素。)
var dte = new Date("October 11, 2017 08:01:29");
setInterval('test()', 1000);
function test(){
//update date "dte"
console.log(dte)
}
ask by KasaiJo translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…