摘要: 在react-router@4中传参有三种方式 一、通过params传参: 1、在路由表中: 2、Link处使用: 3、js处使用 4、参数获取 这种方法有两个注意点,与2、3区别: 11、<Route path="/search/:type(/:keyword)" component={Searc 阅读全文
posted @ 2018-11-27 14:10 微lin 阅读(3848) 评论(1) 推荐(0) 编辑