react-router 学习笔记之Link带参数传值

一、经过to='xx/xx'直接条状<Link to={`/my/${myId}/info}>点击</Link>浏览器 二、to=对象,带参数跳转(pathname, query, hash, state(额外数据)),注意:这些参数都被存放到this.props.location中函数  <li><Link to={{pathname:"/select", hash:'#ahash', quer
相关文章
相关标签/搜索