问题描述
您可以在移动 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 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)