housenkui / javascriptbridge Goto Github PK
View Code? Open in Web Editor NEWMore simple more light more easy to use for iOS/OSX bridge with Javascript. Also easy to get js console.log in Xcode.
License: MIT License
More simple more light more easy to use for iOS/OSX bridge with Javascript. Also easy to get js console.log in Xcode.
License: MIT License
Hi,
A great library for logging purposes.
There is one issue where if the logs are enabled then it holds onto the webview's instance which leads to memory leaks.
改用你这个库,之前WebViewJavascriptBridge这个的回调全部没有了,你这库和这个改动了什么
目前用的WKWebView,在调用:[_bridge callHandler:@"replaceimage%@,%@" data:[self replaceUrlSpecialString:info.src] responseCallback:^(id responseData) {
NSLog(@"ObjC received response: %@", responseData);
}];
这句话的时候,block并不会回调,也就是说这句话没有执行成功,换到我的项目里就是图片不能加载出来,而如果使用webView的话,就可以正常加载出图片,block也会回调,这个问题不止在你这里出现,在WebViewJavascriptBridge这个框架里也有这个问题
我已经重新设计了新的交互库,10分钟就能完成接入,也许可以帮助你.
OC:
https://github.com/SDBridge/SDBridgeOC
Swift:
https://github.com/SDBridge/SDBridgeSwift
您好,代码下载下来,里面是有Demo的!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.