<center>
//建立表格
姓名:<input type="text" id="name" /><span id="namesp"></span><br />
Email地址:<input type="text" id="email" /><span id="emailsp"></span><br />
手机号:<input type="text" id="sjh" /><span id="sjhsp"></span><br />
身份证号码:<input type="text" id="sfz" /><span id="sfzsp"></span><br />
<input type="button" id="btn" value="提交" />
</center>
//调用script
<script>
//先定4个flag来确认是不是全部符合在后面调用验证
var flag1 = false;
var flag2 = false;
var flag3 = false;
var flag4 = false;
//拿到name框的离焦事件并且验证
$("#name").blur(function(){
var name = $(&