有关wkwebview和UIwebview获取html中的标签方法

wkwebview方法如下:

[webView evaluateJavaScript:@"navigator.userAgent" completionHandler:^(id result, NSError *error) {
        NSString *string=result;
        NSLog(@"result====%@",string);
    }];

uiwebview方法如下:

UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero];
NSString *string = [webView stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"];
上一篇:B. Random Teams(Codeforces Round 273)


下一篇:网络流(最大流) CodeForces 546E:Soldier and Traveling