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
相關文章
相關標籤/搜索