![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
lyz_bk
web端开发
展开
-
时间的处理(一年、多个月、一个月、一天)
//时间格式化 Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 ...原创 2018-11-09 15:46:16 · 206 阅读 · 0 评论 -
jquery validate 校验
1、自定义添加验证 js代码 //validate自定义手机号码验证 jQuery.validator.addMethod("isPhoneNum", function(value, element) { var length = value.length; var isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/;//固定电话 var i...原创 2018-11-14 11:02:41 · 221 阅读 · 0 评论