hour = hour>=10?hour:"0" + hour;
second = second>=10?second:"0" + second;
时间验证也可以这样写。
second = second>=10?second:"0" + second;
时间验证也可以这样写。
var week=['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
var weekday=week[mydate.getDay()];
var weekday=week[mydate.getDay()];
2016-10-09