A component is changing an uncontrolled input of type number to be controlle react报错

版权声明:多总结,帮助自己的同时也在帮助别人!留下意见和看法,让技术动起来! https://blog.csdn.net/qiphon3650/article/details/86537302

react 报错

A component is changing an uncontrolled input of type number to be controlle

input 的值如果不存在,请设置成 ‘’ ,

 <input type="number" placeholder="请输入申请金额" value={ this.state.askMoney?this.state.askMoney:'' } onChange={ ev=>this.changeAskMoney(ev) } />

猜你喜欢

转载自blog.csdn.net/qiphon3650/article/details/86537302