2013年6月19日

js实用功能

摘要: //日期格式转换 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+": 阅读全文

posted @ 2013-06-19 17:09 bicabo 阅读(199) 评论(0) 推荐(0) 编辑

导航