UIWebView和Safari比较

UIWebView和Safari比较

本文介绍了UIWebView和Safari比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


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

  1. Does UIWebView use the same JavaScript engine as Mobile Safari?

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

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

如果我有一个完全用HTML和JS编写的应用程序,我应该将它包装在UIWebView中或者我应该在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

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

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


推荐答案

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

UIWebView does not have the Nitro Javascript engine, so it executes JS slower than Mobile Safari. So it's not the same.

不确定这个。可能不会。在某些功能上,至少UIWebView比Safari更严格。示例:通过JS设置宽度/高度样式时,需要在数字后面添加px,而Mobile Safari则不需要。

Not sure about this one. Probably not. At least UIWebView is a bit more strict than Safari on certain features. Example: when setting a width/height style through JS, you need to add 'px' behind the number, while Mobile Safari does not require that.

如果您想在App Store上发布应用程序,则必须将其打包。如果没有,你真的不需要。

If you want to release the app on the App Store, you will have to wrap it. If not, you don't really have to.

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

If you wrap it, yes. But it has some limitations, as James Webster wrote.

参见在这里有关于UIWebView和Safari之间差异的更多信息。

See this question here on SO for more information on the differences between UIWebView and Safari.

这篇关于UIWebView和Safari比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 09:34