科尔多瓦使用什么js'引擎'? [英] What js 'engine' does cordova use?

查看:123
本文介绍了科尔多瓦使用什么js'引擎'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cordova使用什么JS'引擎'?它是特定于平台还是所有平台的标准?意味着iOS和Chrome的安卓游戏,以及适用于Windows的IE标准?或者是所有平台上的'Cordova JS'引擎。

What JS 'engine' does Cordova use? Is it platform specific or is it one standard across all platforms? Meaning safari for iOS and chrome for Android, and possible IE standards for windows? Or a 'Cordova JS' engine across all platforms.

更具体地说,我读到它依赖于浏览器JS实现的排序算法.sort()使用(Mozilla使用)合并排序)。我正在考虑使用我创建的合并排序函数或标准.sort()函数。 (无论如何,这可能是合并排序)。内置的.sort()似乎快了大约10ms,或者快了大约14%。

More specifically i read that it depends on the browser JS implementation for what sorting algorithm .sort() uses (Mozilla uses merge-sort). And i was considering using a merge-sort function i created or the standard .sort() function. (which could be a merge-sort anyway). The built in .sort() seems to be about 10ms quicker, or about 14% quicker.

唯一的原因我想要使用我的合并排序(更慢)是因为我肯定知道它将在iOS,Windows,Android等实现完全相同...

Only reason I would want to use my merge-sort (slower) is because I know for sure it will be implemented exactly the same across iOS, windows, android, etc...

推荐答案

在Android上它使用基于Chromium的 Android WebView ,以及使用V8 JavaScript引擎

On Android it uses Android WebView which is based on Chromium, and uses the V8 JavaScript engine.

在iOS上, iOS8使用基于Safari的 WKWebView 使用Nitro JavaScript引擎

On iOS, as of iOS8 it uses the WKWebView which is based on Safari and uses the Nitro JavaScript engine.

在其他平台上......好吧,无论如何本机网络视图是。

On other platforms... well, whatever the native web view is.

这篇关于科尔多瓦使用什么js'引擎'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆