只能输入0或者正整数的正则表达式

let reg = /(^[0-9]\d*$)/
posted @ 2022-06-13 15:40  smil、梵音  阅读(894)  评论(0编辑  收藏  举报