摘要:
//email 验证 var mailReg = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; //interneturl 验证 var urlReg = /^http:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?$/; //电话号码验证 var phoneReg = /^(\(\d{3,4}-)|\d{3.4}-)?\d{7,8}$/; //身份证验证 var sfzReg = /^\d{15}|\d{18}$/; //月份验证 var monthReg = /^(0?[1-9]|1[0-2])$/ 阅读全文