Giter VIP home page Giter VIP logo

Comments (4)

wjiuxing avatar wjiuxing commented on August 16, 2024

弱弱地问一句,你是想走同步 JS 交互接口,还是想弹个框?

from kkjsbridge.

FoneG avatar FoneG commented on August 16, 2024

弱弱地问一句,你是想走同步 JS 交互接口,还是想弹个框?

就是想获取cookie信息,用的 'KKJSBridge/AjaxProtocolHook'

from kkjsbridge.

karosLi avatar karosLi commented on August 16, 2024

image
需要在自己自定义的 webview 代理里实现如下代码

from kkjsbridge.

FoneG avatar FoneG commented on August 16, 2024

需要在自己自定义的 webview 代理里实现如下代码

已经实现了上面的代码,并且【不触发UIDelegate回调方法】的情形只在打开第一个webView的情况下才会出现,打开第二个webView就能正常走UIDelegate回调逻辑。

因为读取行为也是通过脚本自动执行的,推测可能跟js注入有关。目前临时方案是取消webView的预热,可以解决问题。但后面不知道该如何进一步分析,找出原因

from kkjsbridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.