摘要:
function isIdCard(num){ num = num.toUpperCase(); //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X。 if (!(/(^\d{15}$)|(^... 阅读全文
posted @ 2015-10-22 20:24
资江河畔
阅读(236)
评论(0)
推荐(0)
|
摘要:
function isIdCard(num){ num = num.toUpperCase(); //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X。 if (!(/(^\d{15}$)|(^... 阅读全文
posted @ 2015-10-22 20:24
资江河畔
阅读(236)
评论(0)
推荐(0)
摘要:
function ischeck(){var postcode = document.getElementById("postcode").value; if (postcode != "") { //邮政编码判断 var pattern = /^[0-9]{6}$/; flag = pattern... 阅读全文
posted @ 2015-10-22 20:07
资江河畔
阅读(3590)
评论(0)
推荐(0)
|