1var d;
2d = new Date('2014-01-01 10:11:55');
3alert(d.getMinutes() + ':' + d.getSeconds()); //11:55
4d.setSeconds(d.getSeconds() + 10);
5alert(d.getMinutes() + ':0' + d.getSeconds()); //12:05
1const date = new Date('2020-01-01 10:11:55');date.setSeconds(date.getSeconds() + 10);