会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Fourteen
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
正则表达式
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
阅读(35180)
评论(0)
推荐(1)
公告