iOS OC WKWebView获取UserAgent / WebGL
本文实现方式 是通过WKWebView加载js来获取。
获取UserAgent
#import <WebKit/WebKit.h>
@interface ViewController ()<WKScriptMessageHandler>
@property(nonatomic, strong) WKWebView *webView1; // 强引用一下
@property(nonatomic, strong) WKWebView *webView2; // 强引用一下
@end
原创
2020-09-18 21:08:09 ·
2124 阅读 ·
0 评论