2015
01-30
01-30
js 时间格式替代多余字符代码
Date.prototype.format=function(style){if(style==undefined||style==null)style="yyyy-MM-dd";varo={"M+":this.getMonth()+1,//month"d+":this.getDate(),//day"h+":this.getHours(),//hour"m+":this.getMinutes(),//minute"s+":this.getSeconds(),//second"w+":"天一二三四五六".charAt(th...
继续阅读 >