摘要:
//日期格式化Date.prototype.format = function (format) {/* * eg:format="yyyy-MM-dd hh:mm:ss"; */var o = {"M+": this.getMonth() + 1, // month "d+": this.getDate(), // day "h+": this.getHours(), // hour "m+": this.getMinutes(), // minute "s+": this 阅读全文