原因:可能是因为input type ="text" 的原因。解决:将input type改为numbernumber用法:max - 规定允许的最大值。min - 规定允许的最小值。step - 规定合法数字间隔。value - 规定默认值。