不能输入0校验
xx.test(/^[1-9]\d*/)
负整数
xx.test(/^-?[1-9]\d*/)
输入框不能0开头
猜你喜欢
转载自blog.csdn.net/yana_loo/article/details/80578297
今日推荐
周排行