未验证 提交 dcdafa89 编写于 作者: W wanganxp 提交者: GitHub

Update window.md

上级 3dbd3827
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
|5+App|H5|微信小程序 |支付宝小程序|百度小程序|头条小程序| |5+App|H5|微信小程序 |支付宝小程序|百度小程序|头条小程序|
|:-:|:-:|:-:|:-:|:-:|:-:| |:-:|:-:|:-:|:-:|:-:|:-:|
|√|√|√|x|x|x| |√(nvue不支持)|√|√|x|x|x|
**CALLBACK 参数说明** **CALLBACK 参数说明**
...@@ -24,6 +24,10 @@ uni.onWindowResize((res) => { ...@@ -24,6 +24,10 @@ uni.onWindowResize((res) => {
}) })
``` ```
**TIPS**
- 如App端设置软键盘弹出方式为adjustResize ,则在键盘弹出时,会触发此事件。
- 横竖屏切换时,会触发此事件。
### uni.offWindowResize(CALLBACK) ### uni.offWindowResize(CALLBACK)
取消监听窗口尺寸变化事件 取消监听窗口尺寸变化事件
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册