Skip to content

Commit 67001b7

Browse files
committed
edit md
1 parent d656a41 commit 67001b7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

react/router/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ ReactDOM.render(
9696
document.getElementById('app')
9797
)
9898
```
99-
[效果预览](https://wscats.github.io/react-tutorial/react/router/index.html)
99+
100+
### 效果预览
101+
102+
- [路由DEMO](https://wscats.github.io/react-tutorial/react/router/index.html)
100103

101104
# 路由参数
102105
* 路由的参数传递是通过 Route 组件的 path 属性来指定的。
@@ -178,7 +181,10 @@ ReactDOM.render(
178181
* `this.props.params` 获取的参数为一个固定的对象: `{splat: [**, *]}`
179182
* 匹配 URL:/all3/a/001.jpg,参数为 `{splat: ['a', '001']}`
180183
* 匹配 URL:/all3/a/b/001.jpg,参数为 `{splat: ['a/b', '001']}`
181-
[效果预览](https://wscats.github.io/react-tutorial/react/router/params.html)
184+
185+
### 效果预览
186+
187+
- [路由传参](https://wscats.github.io/react-tutorial/react/router/params.html)
182188

183189
# IndexRoute
184190
当访问一个嵌套路由时,指定默认显示的组件

0 commit comments

Comments
 (0)