码迷,mamicode.com
首页 > 其他好文 > 详细

react 跳转但不记录当前页面历史路径

时间:2017-12-13 12:04:50      阅读:402      评论:0      收藏:0      [点我收藏+]

标签:single   页面   跳转   ops   post   path   reac   from   order   

this.props.history.push({pathname:‘/my/order/sureorder‘,state: {from: ‘single‘}});//跳转
this.props.history.replace({pathname:‘/my/order/sureorder‘,state: {from: ‘single‘}}); //跳转但不记录当前页面历史路径

react 跳转但不记录当前页面历史路径

标签:single   页面   跳转   ops   post   path   reac   from   order   

原文地址:http://www.cnblogs.com/LLLLily/p/8031356.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!