阅读背景:

在JS中如何把毫秒转换成规定的日期时间格式

来源:互联网 
 1 Date.prototype.toLocaleString = function() {
2 return this.getFullYear() + "-" + (this.getMonth() + 1) + "-" + this.getDate() + " " + this.getHours() + ":" + this.getMinutes() + ":" + this.getSeconds(); 2



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: