input type='number' 限制不能输负数问题

it2022-05-05  96

1.type 为number 可以输 ‘-’ 可以限制开始不能输‘-’,之后数字后面跟‘-’去不掉 2.需要将type 修改为text 即可解决问题


最新回复(0)