首页 > 其他 > 详细

react使用(正在更新)

时间:2020-08-19 22:21:45      阅读:99      评论:0      收藏:0      [点我收藏+]

react路由配置及路由传参

技术分享图片

使用方法

1.a页面

<Link to={`/MarketingPlayScan/lottery/detail/${record.id}/${record.lotteryId}`} target="_blank">跳b页面</Link>

2.b页面

const {match: { params: {id,lotteryId} } = this.props//取得路由参数 id 和 lotteryId
const params = {
      levelIdid,
      lotteryIdlotteryId,
      startTime!startTime ? ‘‘ : moment(startTime).format(dateFormat)
   ...
    }
 window.open(`${basePath}/yh/dw/prize/record/export?${stringify(params)}`)

技术分享图片

 

react使用(正在更新)

原文:https://www.cnblogs.com/leeSmile/p/13203198.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!