react使用hashHistory实现相似get方法带参数跳转

主页routerhtml <Route path="/apartmentReserve/:apartmentId" component={ApartmentReserve}/> 前一页引入hashHistorythis import {hashHistory} from 'React-router' 传参: btnClick:function () { hashHistory.push({
相关文章
相关标签/搜索