apicloud安全适配获取
api.safeArea.top
top: 安全区域上边缘,对于沉浸式下window中该值通常为状态栏高度,全屏或非沉浸式下为0(iPhone X竖屏时全屏状态下也为44)
left: 安全区域左边缘,通常为0(iPhone X横屏时为44)
bottom: 安全区域下边缘,通常为0(iPhone X竖屏时为34,横屏时为21)
right: 安全区域右边缘,通常为0(iPhone X横屏时为44)
api.openFrame({ name: '', url: '', rect: { x: 0, y: api.safeArea.top, w: api.winWidth, h: 'auto' }, bounces:true });
收集项目中遇到问题从中得到解决方法的链接。

浙公网安备 33010602011771号