赞助
posts - 449,comments - 12,views - 11万
05 2021 档案
编程式导航
摘要:react-router-dom中通过history对象中的push/replace/go等方法实现编程式导航功能 this.props.history.push(path) 或 this.props.history.push({ pathname:’’, search:’’, state:{} } 阅读全文
posted @ 2021-05-31 12:56 Tsunami黄嵩粟 阅读(90) 评论(0) 推荐(0) 编辑
react路由渲染
摘要:三种渲染方式 component = (组件对象或函数) <Route path="/home" component={Home} /> 或 <Route path="/home" component={()=><Home />} /> render = (函数) <Route path="/hom 阅读全文
posted @ 2021-05-31 12:55 Tsunami黄嵩粟 阅读(141) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示

喜欢请打赏

扫描二维码打赏

支付宝打赏