/**
* 校验邮政编码
* @param postCode 要检验的数据
*/
function checkPostalCode(postCode)
{
if (!checkstring_allSpace(postCode))
return false;
var postCode = trim(postCode);
if (postCode.length == 0)
return true;
if (postCode.length < 6)
return false;
var patrn=/^[0-9 ]{3,12}$/;
if (!patrn.exec(postCode))
return false;
return true;
}

被折叠的 条评论
为什么被折叠?



