//验证身份证号 var ChenkSfz = /^\d{17}[\d|x|X]|\d{15}$/; if (!ChenkSfz.test(Card)) { alert("请输入正确的身份证号"); $("#Card").focus(); return false; }