2023-06-19 API `getMenuButtonBoundingClientRect` is not yet implemented

前言:想使用该Api来获取设备导航栏高度,结果报错了:API `getMenuButtonBoundingClientRect` is not yet implemented

尚未实现API `getMenuButtonBoundingClientRect`

原因:该Api不支持在app端或者h5端使用。平台兼容如下:

 

AppH5微信小程序支付宝小程序百度小程序抖音小程序飞书小程序QQ小程序
x x x
所以它只能在小程序端使用。
posted @ 2023-06-19 14:22  叶乘风  阅读(73)  评论(0编辑  收藏  举报