正则表达式的验证匹配
用户名:var string = /^[a-zA-Z0-9_-]{4,16}$/;
密码:var string = /^.*(?=.{6,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*? ]).*$/;
email:var string = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
身份证:var string = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;