Skip to content

Commit

Permalink
docs: 增加getApp的注意事项
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Oct 11, 2019
1 parent 5768db7 commit 2fe79e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/collocation/frame/window.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ console.log(app.globalData)
```

**注意:**

- 通过 getApp() 获取实例之后,不要私自调用生命周期函数。
- 不要在定义于 `App()` 内的函数中,或调用 `App` 前调用 `getApp()` ,可以通过 `this.$scope` 获取对应的app实例
- 通过 `getApp()` 获取实例之后,不要私自调用生命周期函数。

### getCurrentPages()

Expand Down

0 comments on commit 2fe79e0

Please sign in to comment.