javascript 中new Date().toLocaleString()在不同浏览器中的结果不一致的解决方法

javascript 中new Date().toLocaleString()在不同浏览器中的结果不一致的解决方法
原创淋花吧! 发布于2018-10-23 11:49:19 阅读数 1054  收藏
展开
Date.prototype.toLocaleString = function () {
return this.getFullYear()+’-’+(this.getMonth()+1)+’-’+this.getDate()+’ &nbsp’+this.getHours()+’:’+this.getMinutes()+’:’+this.getSeconds()
};
————————————————
版权声明:本文为CSDN博主「淋花吧!」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_40109752/article/details/83304725

原文地址:https://www.cnblogs.com/grj001/p/12223021.html