摘要: Date.prototype.format Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.g 阅读全文
posted @ 2017-05-17 19:11 xing_sai 阅读(201) 评论(0) 推荐(0)
摘要: //判断是否是电话号码function IsTel(Tel){ var re=new RegExp(/^(((13[0-9]{1})|(17[0-9]{1})|(19[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/); var retu=Tel.match( 阅读全文
posted @ 2017-05-17 17:19 xing_sai 阅读(120) 评论(0) 推荐(0)
摘要: Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" 阅读全文
posted @ 2017-05-17 16:54 xing_sai 阅读(431) 评论(1) 推荐(0)