正则表达正整数/正则表达正整数不包括0

replace(/[^.1-9]/g,'')  

只可以输入1-9正整数

原文地址:https://www.cnblogs.com/djlele/p/10076916.html