from:http://blog.csdn.net/diyagoanyhacker/article/details/6564897
获取所有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获取网页信息总结 |