LTJSBridge:WKWebView JSBridge像Android一样addJavascriptInterface和名称

时间:2021-05-14 03:35:26
【文件属性】:
文件名称:LTJSBridge:WKWebView JSBridge像Android一样addJavascriptInterface和名称
文件大小:65KB
文件格式:ZIP
更新时间:2021-05-14 03:35:26
Objective-C LTJS桥 例子 要运行示例项目,请克隆存储库,然后首先从Example目录运行pod install 。 JS Code: JSInterface.test(function(result) { clientinfo[removed] = "result: " +result; }) JSInterface.test1("str1","str2",function(result) { clientinfo[removed] = "result: " ;}) JSInterface.test2("str1","str2","str3","str4"); OC Code: @interface JSInterface:NSObject @end @implementation JSInterface - (nullable NSDictiona
【文件预览】:
LTJSBridge-master
----.travis.yml(551B)
----JSBridge()
--------Assets()
--------Resources()
--------.DS_Store(6KB)
--------Classes()
----Example()
--------LTJSBridge.xcworkspace()
--------Podfile(158B)
--------.DS_Store(6KB)
--------Podfile.lock(327B)
--------Pods()
--------LTJSBridge.xcodeproj()
--------Tests()
--------LTJSBridge()
----LICENSE(1KB)
----.DS_Store(6KB)
----_Pods.xcodeproj(27B)
----.gitignore(1KB)
----LTJSBridge.podspec(710B)
----README.md(2KB)

网友评论