博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
program-life
所有的一切都要靠我自的努力去获得,这样我才能抬起头来做人...... 别人的永远不会是我的......
myprogramlife.cublog.cn
管理博客
发表文章
留言
收藏夹
博客圈
音乐
相册
文章
· 技巧示例
· 数据库
}
· mssql
· mysql
· oracle
· JS
· SSH
}
· Struts
· Spring
· Hibernate
· 环境配置
· 技术文章
· 其它
· 杂谈
首页
JS->JS邮政编码判断
function ischeck(){
var postcode = document.getElementById("postcode").value;
if (postcode != "") { //邮政编码判断
var pattern = /^[0-9]{6}$/;
flag = pattern.test(postcode);
if (!flag) {
alert("非法的邮政编码!")
document.getElementById("postcode").focus();
return false;
}
}
}
发表于: 2008-03-11 ,修改于: 2008-03-11 10:03,已浏览196次,有评论0条
推荐
投诉
网友评论
发表评论