1. 首页
  2. 数据库
  3. 其它
  4. react使用hashHistory实现类似get方法带参数跳转

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

上传者: 2021-01-16 19:22:50上传 PDF文件 18.87KB 热度 10次
主页router 前一页引入hashHistory import { HashRouter } from 'react-router-dom'; 传参: btnClick() { hashHistory.push({ pathname: '/apartmentReserve/'+yourApartmentId, query: { name:yourApartmentname, price:yourApartmentprice }, }) } 或者通过to 传参: 点击跳转
下载地址
用户评论