update readme

This commit is contained in:
张磊 2018-10-26 11:25:07 +08:00
parent be7373fd93
commit 73b9368817
1 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,14 @@ class MyApp extends WeElement {
render(<my-app></my-app>, 'body')
```
## page.base([path])
Get or set the base path. For example if page.js is operating within /blog/* set the base path to "/blog"
```js
page.base('/blog')
```
## License
MIT © dntzhang