oletan

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年4月29日

摘要: var str = '2008-11-11 11:11:09'; alert(str.replace(/\s\d+:\d+:\d+$/,''));Date.prototype.format = function(format) { var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this... 阅读全文
posted @ 2010-04-29 17:34 Ole 阅读(392) 评论(0) 推荐(0) 编辑