UIWebView: Can You Disable Javascript?(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.
我说的对吗?
我问这个问题 关于使用 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 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:UIWebView:你能禁用 Javascript 吗?
基础教程推荐
- iOS4 创建后台定时器 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
