Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 在 Android 浏览器或 WebView 中检测
我想检测网页是否在 ios Web 视图或其他外部示例浏览器中打开。如何在javascript代码上检查这个?
看看用户代理,应该有区别——特别是,非 webview 移动设备明确提到了 Safari。以下问题有一些示例代码,可用于检测差异。
通过 javascript 检测 ipad/iphone webview