版权声明:本文为博主原创文章,欢迎转载,转载请注明作者、原文超链接 https://blog.csdn.net/qq_40109752/article/details/83304725
Date.prototype.toLocaleString = function () {
return this.getFullYear()+’-’+(this.getMonth()+1)+’-’+this.getDate()+’  ’+this.getHours()+’:’+this.getMinutes()+’:’+this.getSeconds()
};