摘要: 在 react 组件的 componentDidMount 方法中打印一下 this.props,在浏览器控制台中查看输出如下: 其中页面的 url 信息全都包含在 match 字段中,以地址 为例,其中各个参数定义对应如下: 首先打印 this.props.match : 可以看到 this.pr 阅读全文
posted @ 2017-10-11 16:37 淳安梁朝伟 阅读(78042) 评论(0) 推荐(5) 编辑