摘要:
prototype 属性使您有能力向对象添加属性和方法。类似.net扩展方法定义:String.prototype.toWeekName = function () { var newDate = new Date(this.replace(/-/g, '/')); var weekda... 阅读全文
摘要:
//由星期的数字转换为星期的名称,date格式:2016-01-07,用"-"分割function toWeekName(date) { var newDate = new Date(date.replace(/-/g, '/')); var weekday = new Array(7)... 阅读全文