摘要:
https://www.jianshu.com/p/bb666b71e104 一、简述 目前原生与JS交互的方式有以下几种 JavaScriptCore WKWebView 拦截URL WebViewJavascriptBridge库 二、JavaScriptCore (一)定义 1.JSConte 阅读全文
posted @ 2019-09-27 22:33
sundaysios
阅读(867)
评论(0)
推荐(0)
摘要:
#import <WebViewJavascriptBridge.h> /// @interface ZWBridgeViewController ()<WKNavigationDelegate, WKUIDelegate, UIGestureRecognizerDelegate> @propert 阅读全文
posted @ 2019-09-27 21:47
sundaysios
阅读(490)
评论(0)
推荐(0)
摘要:
https://www.jianshu.com/p/06647fea1dd8 阅读全文
posted @ 2019-09-27 17:35
sundaysios
阅读(145)
评论(0)
推荐(0)
摘要:
https://www.jianshu.com/p/14b9ea4bf1d4 https://github.com/Yeatse/NSURLProtocol-WebKitSupport/blob/master 重点在这 - (void)setUrl:(NSURL *)url { _url = url 阅读全文
posted @ 2019-09-27 06:39
sundaysios
阅读(1787)
评论(0)
推荐(0)

浙公网安备 33010602011771号