function _inputBlur(){ var u = navigator.userAgent; var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // 判断是否为IOS系统 if(isiOS) { setTimeout(function(){ const scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0; window.scrollTo(0, Math.max(scrollHeight - 1, 0)); }, 100); } }
苹果手机弹出框关闭按钮对应错误
最新推荐文章于 2021-08-03 22:45:20 发布