js正则表达式匹配正整数

var reg = new RegExp("^[1-9]\\d*$");
param.examCount.match(reg) == null
posted @ 2020-11-11 17:35  文所未闻  阅读(2946)  评论(0编辑  收藏  举报