正则验证
/*判断身份证号*/
var cardno = $('input[name=cardno]').val();
var isIDCard1=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
if(!isIDCard1.test(cardno)){
api.showPress({title:'身份证格式不对',duration:1500})
return false;
}