gpt4 book ai didi

android - iOS 版 Chrome 和 Android 版 Chrome 之间的区别

转载 作者:可可西里 更新时间:2023-11-01 06:19:27 27 4
gpt4 key购买 nike

正如标题所说:Android 版 Chrome 和 iOS 版 Chrome 有什么区别。

我对两者进行了一些研究,但找不到关于该主题的任何最新信息。进行这项研究的原因是因为我正在研究某些 Web API 的移动浏览器之间的兼容性。为此,我使用 caniuse.com ,它只显示 Chrome for android 但不显示 iOS。

我知道 iOS 版 Chrome 不再由 UIWebView 执行(iOS >= 8),它现在使用 WKWebView .

那么,Android 版 Chrome 和 iOS 版 Chrome 是相同的还是这些移动浏览器之间仍然存在差异?

最佳答案

╔═══════════════════════╦══════════════════╦═══════════════════════╗
║ Chrome ║ Rendering Engine ║ JavaScript Engine ║
╠═══════════════════════╬══════════════════╬═══════════════════════╣
║ iOS ║ iOS WebKit ║ Nitro(JavaScriptCore) ║
║ Android/Windows/Linux ║ Blink ║ V8 ║
╚═══════════════════════╩══════════════════╩═══════════════════════╝

除了@Innominatum 的回答,请注意,适用于 Android/Windows/Linux 的 Chrome 使用 V8 JavaScript 引擎,而适用于 iOS 的 Chrome 必须使用 Nitro 引擎(与 Safari 相同的引擎)

In accordance with Apple's requirements for browsers released through their App Store, iOS version of Chrome uses the iOS WebKit – which is Apple's own mobile rendering engine and components, developed for their Safari browser – therefore it is restricted from using Google's own V8 JavaScript engine

因此 Chrome 甚至 Firefox 的行为与 iOS 上的 Safari 基本相同。这就是为什么 https://caniuse.com仅显示一个 iOS 支持表 (iOS Safari)

引用资料:

https://en.wikipedia.org/wiki/Google_Chrome

https://softwareengineering.stackexchange.com/questions/198375/why-is-it-impossible-for-google-to-port-v8-along-with-chromes-codebase-in-c-obj

https://github.com/Fyrd/caniuse/issues/1551

https://github.com/Fyrd/caniuse/issues/3869

关于android - iOS 版 Chrome 和 Android 版 Chrome 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46546744/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com