Authored by gaoqiang xu

合并test分支的内容

... ... @@ -108,6 +108,14 @@
* @param params 参数
*/
- (void)explorerDidDetectParameters:(NSDictionary * _Nonnull)params;
/**
@brief 将要加载请求前的回调
@param request 请求
@since 1.0.7
*/
- (void)explorerWillLoadRequest:(NSMutableURLRequest * _Nonnull)request;
/**
@brief 补充userAgent
... ...
... ... @@ -206,7 +206,11 @@ static float kprogressViewRadius = 2.0f;
- (void)loadWebUrl:(NSString *)url
{
self.startPage = url;
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:url]];
if ([self.delegate respondsToSelector:@selector(explorerWillLoadRequest:)]) {
[self.delegate explorerWillLoadRequest:request];
}
[self.webView loadRequest:request];
}
- (void)loadHTMLString:(NSString *)html
... ...