render: (text, record) => (<span>
<a onClick = {this.handelDel.bind(this,record)} >delete</a> //這里是綁定this和一個(gè)參數(shù)//下面這個(gè)函數(shù)怎么才能加上event.preventDefault()來(lái)阻止默認(rèn)行為, event這個(gè)參數(shù)到哪里去了?handelDel(record) {this.props.onDelClick(record.key);}
react 一個(gè)事件bind參數(shù)后如何用preventDefault來(lái)阻止默認(rèn)行為?
幕布斯7119047
2018-10-17 13:10:39