扩展JS Date对象时间格式化功能的小例子_javascript技巧
在自己JS代码中引入一下代码:复制代码代码如下:Date.prototype.format =function(format){var o = {"M+" : this.getMonth()+1, //month"d+" : this...
在自己JS代码中引入一下代码:复制代码代码如下:Date.prototype.format =function(format){var o = {"M+" : this.getMonth()+1, //month"d+" : this...