📌  相关文章
📜  javascript 日期减去秒数 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:59.377000             🧑  作者: Mango

代码示例2
var d;
d = new Date('2014-01-01 10:11:55');
alert(d.getMinutes() + ':' + d.getSeconds()); //11:55
d.setSeconds(d.getSeconds() + 10);
alert(d.getMinutes() + ':0' + d.getSeconds()); //12:05