提交 81218cb3 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

Update get-window-info.md

上级 7a6f4665
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
<!-- UTSAPIJSON.getWindowInfo.returnValue --> <!-- UTSAPIJSON.getWindowInfo.returnValue -->
## 注意事项
* Android端的`windowHeight`属性是有时机的考量的,如果在全局作用域获取`windowHeight`,有可能当前Activity还未加载,所以导航栏和Tabbar的高度是不会计算进去的,稳妥起见,建议在`onReady`或者`onPageShow`内获取`windowheight`
<!-- UTSAPIJSON.getWindowInfo.example --> <!-- UTSAPIJSON.getWindowInfo.example -->
<!-- UTSAPIJSON.getWindowInfo.tutorial --> <!-- UTSAPIJSON.getWindowInfo.tutorial -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册