2024年2月22日
摘要: 虽然很简单但还是做个记录 const u = navigator.userAgent export const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 //android终端 export const isiOS 阅读全文
posted @ 2024-02-22 19:57 Tom最好的朋友是Jerry 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 前言 IOS和安卓不同的地方在于设置了安全距离,所以需要特别的设置,否则设置了全屏会出现顶部有一片空白区域的问题。 解决方法: 1、iOS添加代码 if (@available(iOS 11.0, *)) { g_web.scrollView.contentInsetAdjustmentBehavi 阅读全文
posted @ 2024-02-22 19:43 Tom最好的朋友是Jerry 阅读(166) 评论(0) 推荐(0) 编辑