您可以在移动 Safari 和 Cocoa 的 WebView 中禁用 Javascript,但在 UIWebView
中我看不到这样做的方法.
You can disable Javascript in both mobile Safari and Cocoa's WebView but I can see no means of doing so in UIWebView
.
我说的对吗?
我问这个问题 关于使用 Javascript 获取 UIWebView
中显示的页面标题.我担心如果禁用 Javascript 会失败,但似乎 API 不允许禁用 Javascript.
I ask in relation to this question regarding obtaining the title of page displayed in an UIWebView
using Javascript. I had worried that it would fail if Javascript was disabled but it appears the API does not allow the disabling of Javascript.
如果 Javascript 不能被停用 UIWebView
,这会使我之前的问题变得毫无意义.
If Javascript cannot be deactivated UIWebView
,that renders my previous question moot.
没有公共 API 可以禁用 Javascript.所以假设它不会被禁用是相当安全的.
There is no public API to disable Javascript. So it is fairly safe to assume that it won't be disabled.
这篇关于UIWebView:你能禁用 Javascript 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!