【发布时间】:2018-08-04 22:51:23
【问题描述】:
我想将单位添加到 textInput 值:
我尝试使用value = { this.state.totalWeight + " Kgs"},但没有结果!
我也尝试在onSubmitEditing = { () => { this.refs.firstInput.refs.value = this.state.totalWeight + " Kgs" } 中添加" Kgs",但同样没有结果!
有什么想法吗?
提前致谢!
【问题讨论】:
标签: javascript reactjs react-native ecmascript-6