^[\-|0-9][0-9]* ^[\-|0-9][0-9]{1,}$ input type='number' 也行。。。 转载于:https://www.cnblogs.com/MartinLee/p/7622524.html