摘要: 1,日期格式化(如格式成2013-12-27 15:30,new Date().format("yyyy-MM-dd hh:mm:ss"),这种格式在safari浏览器上会出问题,可用.format("yyyy/MM/dd hh:mm:ss")代替): 1 Date.prototype.format = function (format) { 2 var o = { 3 "M+": this.getMonth() + 1, 4 "d+": this.getDate(), 5 "h+": this 阅读全文
posted @ 2013-12-27 15:38 冰深 阅读(324) 评论(0) 推荐(0) 编辑