2024-04-28 今日 goolge 的知识点 没落英雄 2024-04-28 33 阅读1分钟 安全区判断 小程序中判断底部是否有安全区 const systemInfo: WechatMiniprogram.SystemInfo = wx.getSystemInfoSync() this.setData({ hasSafeArea: Boolean(systemInfo.safeArea && systemInfo.screenHeight > systemInfo.safeArea.bottom ), })