下载的JavaScript执行中的UIWebView与JavaScriptCore的 [英] Downloading Javascript for execution in UIWebView versus JavascriptCore

查看:127
本文介绍了下载的JavaScript执行中的UIWebView与JavaScriptCore的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS的许可条款规定:

The iOS license terms states:

3.3.2应用程序可能无法下载或安装可执行code。国米preTED code可能只在一个应用程序中使用,如果所有的脚本,
  code和跨preters被打包在应用程序,而不是
  下载。唯一的例外前述的脚本和code
  下载和苹果的内置的WebKit框架运行,前提是
  这样的脚本和code不改的首要目的
  由是提供特性或功能应用
  同的预期和发布的目的不符
  提交到App Store的应用程序。

3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's builtin WebKit framework, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.

这是对条款的轻微变化这里讨论:
<一href=\"http://stackoverflow.com/questions/8453519/does-javascript-on-ios-have-to-be-downloaded-by-the-webkit-framework-in-additi\">Does iOS上的JavaScript已经被下载*除了其框架内执行的WebKit框架?

Which is a slight change to the terms as discussed here: Does javascript on iOS have to be downloaded *by* the WebKit framework in addition to executing within its framework?

这无疑意味着,你可以下载,如果它作为一个UIWebView是内置的WebKit框架的一部分,一个UIWebView中执行。

Which arguably implies you CAN download and execute Javascript if its executed within a UIWebView as UIWebView is part of the builtin WebKit framework.

这是什么情况有关下载和使用没有执行的JavaScript的UIWebView但JavaScriptCore的。 JavaScript是核心考虑WebKit的框架的一部分。

What is the situation regarding downloading and executing Javascript using not UIWebView but JavaScriptCore. Is JavaScript core considered part of the WebKit framework

推荐答案

JavaScriptCore的相信自己每域中的WebKit框架的一部分托管它的文档,并命名为维基百科的WebKit 的一部分。 JavaScriptCore.framework是磁盘上的一个单独的文件中,但没有WebKit.framework。一位在该框架内的文件被命名为'WebKitAvailability.h,并定义如 WEBKIT_VERSION_4_0 preprocessor宏和东西一大堆的Webkit使用标记功能仅适用在某些版本,表示首标用于表示WebKit的可用性,而不是测试对于它

JavaScriptCore believes itself to be part of the WebKit framework per the domain hosting its documentation and is named as part of WebKit by Wikipedia. JavaScriptCore.framework is a separate file on disk but there is no WebKit.framework. One of the files in that framework is named 'WebKitAvailability.h' and defines preprocessor macros like WEBKIT_VERSION_4_0 and a bunch of things that WebKit uses to mark functions as available only in certain versions, indicating that the header is used to signify WebKit availability rather than to test for it.

因此​​,对可能性的衡量我要说的却是JavaScriptCore的是WebKit的框架的一部分。

So on the balance of probabilities I'd argue that JavaScriptCore is part of the WebKit framework.

这篇关于下载的JavaScript执行中的UIWebView与JavaScriptCore的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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