美文网首页
react使用link传值

react使用link传值

作者: SugeonYen | 来源:发表于2019-07-07 21:21 被阅读0次

a.js(发送方):

<Link to={{

                    pathname: "/admin/zujian/AccountManage",

                    state: this.state.tabledata,

                    }}>用户管理</Link>

b.js(接收方):

let tabledata = this.props.location.state;

相关文章

网友评论

      本文标题:react使用link传值

      本文链接:https://www.haomeiwen.com/subject/zywihctx.html