UIWebView:你能禁用Javascript吗? [英] UIWebView: Can You Disable Javascript?

查看:395
本文介绍了UIWebView:你能禁用Javascript吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在移动版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.

我是否正确?

我问这个问题获取 UIWebView中显示的页面标题 使用Javascript。我担心如果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吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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