获取所有html:NSString *lJs = @"document.documentElement.innerHTML";
获取网页title:NSString *lJs2 = @"document.title"; UIWebView *lWebView = [self getCurrentWebView]; NSString *lHtml1 = [lWebView stringByEvaluatingJavaScriptFromString:lJs]; NSString *lHtml2 = [lWebView stringByEvaluatingJavaScriptFromString:lJs2];
JavaScript获取网页信息总结 |
iphone 获取UIWebView内Html方法
最新推荐文章于 2020-09-18 15:59:55 发布