JS中匹配正整数

来源:互联网 发布:mac双系统卸载 编辑:程序博客网 时间:2024/06/08 09:21
//匹配正整数var reg=/^[1-9]\d*$/;   if(reg.test(seat)){    return true;}
原创粉丝点击