容我先对iOS标示一下尊重(一万头羊驼奔腾而过)
因为用的react开发的,请看高亮处
<input type="number" placeholder='10'
ref={(numberInput) => {
this.numberInput = numberInput;
}}
pattern="[0-9]*"
onChange={(value) => {
let tempValue = this.numberInput.value;
this.setState({multiples: tempValue})
}}/>