会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Fourteen
博客园
首页
新随笔
联系
订阅
管理
2019年10月29日
js 正则表达式判断正整数
摘要: <input type="number" id="places" name="places" max="10000"> //js只能输入正整数(不包括负整数和0) var places = $("#places").val(); if(!(/(^[1-9]\d*$)/.test(places))){
阅读全文
posted @ 2019-10-29 14:34 Fourteen
阅读(35053)
评论(0)
推荐(1)
编辑
公告