react怎么獲取當前元素或者說提交表單時有某個文本框輸入的信息不符合要求,這是我要用什么方式找到這個對應的元素進行提示的操作如下代碼:clickHandles:function(e){
e.preventDefault(); for(var i in this.state){
if(this.state[i].length<1)
//這個地方該怎么寫呢
}
},<button className='btn btn-primary' onClick={this.clickHandles} style={{ 'marginTop': '10px'}}>驗證</button>
react 怎么獲取當前元素
喵喔喔
2018-09-06 15:09:27