摘要:
验证邮箱 function isEmail(str){ var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/; return reg.test(str); } 验证日期格式 function testReg(reg,str) 阅读全文
posted @ 2019-06-14 14:57 taigudaren 阅读(94) 评论(0) 推荐(0)
|
摘要:
验证邮箱 function isEmail(str){ var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/; return reg.test(str); } 验证日期格式 function testReg(reg,str) 阅读全文
posted @ 2019-06-14 14:57 taigudaren 阅读(94) 评论(0) 推荐(0)
摘要:
var Person = function(name, email, website){ this.name = name; this.email = email; this.website = website; this.sayHello = function(){ var hello = "He 阅读全文
posted @ 2019-06-14 14:52 taigudaren 阅读(329) 评论(0) 推荐(0)
摘要:
Array.prototype.unique=function(){ var i,tmpArr=[]; for(i in this){ if(typeof this[i]!='function'){ if(tmpArr.join(',').indexOf(this[i]) 1){ tmpArr.pu 阅读全文
posted @ 2019-06-14 14:50 taigudaren 阅读(83) 评论(0) 推荐(0) |
||