如何this.props.history.push传参数
从A页面跳转到B页面
第一种:
A页面 传参数
this.props.history.push{
pathname:’/router/url/send’,
query:{
“oneFlag”:one,
…
}
}
B页面 接收参数
this.props.location.query.oneFlag // one
…
路由路径显示:‘#/router/url/send/oneFlag?one’
第...
原创
2019-09-27 10:47:50 ·
17249 阅读 ·
0 评论