正则:输入整数

const ref = new RegExp(/^[/d-]*$/)

ref.test(value);

posted @ 2019-10-21 10:55  小蓉儿  阅读(220)  评论(0)    收藏  举报