问 题 : Ant Design中table里面使用onclick事件页面加载后自动执行,然后点击无效
解决方案:
{
title: '操作',
dataIndex: 'id',
key: 'id',
width: "7%",
render: (text,record) =>
<a href="javascript:;" onClick={this.Test.bind(this, text)}>查看</a>, //在此添加bind即可
}
Test=()=>{
}