摘要: https://www.jianshu.com/p/bb666b71e104 一、简述 目前原生与JS交互的方式有以下几种 JavaScriptCore WKWebView 拦截URL WebViewJavascriptBridge库 二、JavaScriptCore (一)定义 1.JSConte 阅读全文
posted @ 2019-09-27 22:33 sundaysios 阅读(797) 评论(0) 推荐(0) 编辑
摘要: #import <WebViewJavascriptBridge.h> /// @interface ZWBridgeViewController ()<WKNavigationDelegate, WKUIDelegate, UIGestureRecognizerDelegate> @propert 阅读全文
posted @ 2019-09-27 21:47 sundaysios 阅读(478) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/06647fea1dd8 阅读全文
posted @ 2019-09-27 17:35 sundaysios 阅读(138) 评论(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 阅读(1702) 评论(0) 推荐(0) 编辑