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

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