illusionspaces / wkjavascriptbridge Goto Github PK
View Code? Open in Web Editor NEW一款基于WKWebView构建的JSBridge框架,插件化集成,一行代码即可使用,支持iOS8+。
License: MIT License
一款基于WKWebView构建的JSBridge框架,插件化集成,一行代码即可使用,支持iOS8+。
License: MIT License
看了文章简介分析的很全面,粗略看了下插件的写法,跟ionic的插件开发很像,给大佬点赞👍
我已经重新设计了新的交互库,10分钟就能完成接入,也许可以帮助你.
OC:
https://github.com/SDBridge/SDBridgeOC
Swift:
https://github.com/SDBridge/SDBridgeSwift
太棒了,学习了,会持续维护吗?
我看见您后续有构建小程序的计划,能说下思路吗,我也想参与下。
大佬~安全那里可以单独写篇博客么? 原生 JS 这边小白一些, 看的不是很懂
看不太懂白名单的作用, 实际上对于白名单这个词是懂得, 就是应用在原生这里, 有点摸不着头脑, 没有能想象到的适用场景
在WKJavaScriptBridgePluginAnnotation.m文件中的registedAnnotationModules函数里,whiteListPlugin数组里始终为空,说明TestSecurityPlugin与WKCommonPlugin都没注册成功,但是TestWebPluginSecurityConfig.h文件里已经都有写下面的代码了
// 配置安全插件
@WKConfigSafePlugin(TestSecurityPlugin)
// 配置插件白名单:类名 方法名 安全级别
// B级
@WKConfigPluginSafeLevel(WKCommonPlugin,asyncTestSecurity,2)
// C级
@WKConfigPluginSafeLevel(WKCommonPlugin,asynDisplayCommon,3)
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.