js怎么判断是否是正实数通过正则表达式判断var reg = ^+?[1-9][0-9]*$var number = 1000 判断是否是正实数if(reg.test(number)){console.log('是正实数')}el2023-04-21JavaScript200