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

2016年5月12日

摘要: Date.prototype.format=function (){var s='';s+=this.getFullYear()+'-';// 获取年份。s+=(this.getMonth()+1)+"-"; // 获取月份。s+= this.getDate(); // 获取日。return(s); 阅读全文

posted @ 2016-05-12 11:31 preface小贝 阅读(1777) 评论(0) 推荐(0)