报错原因:点击事件获取this.props.xx报错是由于点击事件没有绑定到dom元素上
handleBatchCancel(){
console.log('handleBatchCancel')
console.log(this.props.checkedList)//报错
}
解决方案:用bind绑定
constructor(props: any) {
super(props);
this.handleBatchCancel = this.handleBatchCancel.bind(this);
}