Comments (4)
弱弱地问一句,你是想走同步 JS 交互接口,还是想弹个框?
from kkjsbridge.
弱弱地问一句,你是想走同步 JS 交互接口,还是想弹个框?
就是想获取cookie信息,用的 'KKJSBridge/AjaxProtocolHook'
from kkjsbridge.
from kkjsbridge.
需要在自己自定义的 webview 代理里实现如下代码
已经实现了上面的代码,并且【不触发UIDelegate回调方法】的情形只在打开第一个webView的情况下才会出现,打开第二个webView就能正常走UIDelegate回调逻辑。
因为读取行为也是通过脚本自动执行的,推测可能跟js注入有关。目前临时方案是取消webView的预热,可以解决问题。但后面不知道该如何进一步分析,找出原因
from kkjsbridge.
Related Issues (20)
- url参数包含中文,利用 requestId 生成新的 url就会有问题 HOT 5
- 如何实现重定向页面的跳转 HOT 4
- 用了这个解决了ajax请求body丢失的问题后又出现xhr.upload.addeventlistener 失效的问题 HOT 1
- cookie问题请教 HOT 2
- H5离线包如果使用虚拟域名加载可以支持吗? HOT 1
- 使用测试Demo加载百度,打开百度新闻视频类加载不了
- 302 重定向后 cookie 出错
- Demoy源码
- crash:NSOperationQueue 0x282bedca0 (QOS: UNSPECIFIED) HOT 1
- ajax同步请求这里为啥直接弹alert了大佬
- 如果是使用Ajax Hook 部分 API + NSURLProtocol会不会app store审核能过吗? HOT 1
- 复用时,H5 跳转页面,点导航返回异常 HOT 1
- iframe 的请求,body 是空的
- websocket拦截不了
- -[__NSArrayM bytes]: unrecognized selector sent to instance
- Google CapTcha HOT 1
- Hook后无法正常打开网页 HOT 1
- 使用KKWebView后js交互方法执行异常
- 在 iOS14.x 版本中出现了 localstorage 不同步的问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kkjsbridge.