【发布时间】:2012-11-09 19:17:06
【问题描述】:
我的代码:
[Web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:filePath]]];
NSString *html = [Web stringByEvaluatingJavaScriptFromString: @"document.getElementsByClassName('bottomwideborder')[1].innerHTML;"];
NSLog(@"%@", html);
不适用于此 html 文件 - http://www.mosgortrans.org/pass3/shedule.php?type=avto&way=0&date=0000011&direction=AB&waypoint=1(我尝试从 html 中提取表格)
请帮帮我!
【问题讨论】:
标签: html objective-c extract stringbyevaluatingjavascr