handleSearch = (e) => {
if (e) {
e.preventDefault();
}
const { dispatch, form } = this.props;
dispatch({
type: 'content/contentpByTime',
payload: {
time: e.currentTarget.value,
},
});
}
render() {
return (
<Button type="primary" onClick={this.handleSearch}>所有</Button>
)
}
从React中获取Button的传过来的参数
最新推荐文章于 2023-11-06 12:55:38 发布