输入框不能0开头

不能输入0校验
xx.test(/^[1-9]\d*/)
负整数
xx.test(/^-?[1-9]\d*/)

猜你喜欢

转载自blog.csdn.net/yana_loo/article/details/80578297