gpt4 book ai didi

ios - UIWebView 与 Safari 对比

转载 作者:IT王子 更新时间:2023-10-29 08:11:24 28 4
gpt4 key购买 nike

  1. UIWebView 是否使用与 Mobile Safari 相同的 JavaScript 引擎?

  2. 此外,UIWebView 是否像 Mobile Safari 一样支持所有 HTML5 功能?我特别关注 Web SQL 和 Web Workers

  3. 如果我有一个纯粹用 HTML 和 JS 编写的应用程序,我应该将它包装在 UIWebView 中还是应该在 Mobile Safari 中打开它

  4. Apple 商店是否接受纯 HTML 和 JS 应用程序?

最佳答案

Does UIWebView use the same JavaScript engine as Mobile Safari?

UIWebView 没有 Nitro Javascript 引擎,因此它执行 JS 的速度比 Mobile Safari 慢。所以不一样。

Also, does UIWebView support all HTML5 features like Mobile Safari does? I am specifically concerned about Web SQL and Web Workers

不确定这个。可能不是。至少 UIWebView 在某些特性上比 Safari 严格一些。示例:通过JS设置宽高样式时,需要在数字后面加上'px',而Mobile Safari不需要。

If I have an app which is written purely in HTML and JS, should I wrap it up in a UIWebView or should I have it open in Mobile Safari

如果要在 App Store 上发布应用程序,则必须对其进行包装。如果没有,您真的不必这样做。

Are pure HTML and JS apps accepted on the Apple store?

如果你把它包裹起来,是的。但正如 James Webster 所写,它有一些局限性。

参见 this question在 SO 上了解有关 UIWebView 和 Safari 之间差异的更多信息。

关于ios - UIWebView 与 Safari 对比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11648184/

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