获取某个标签的结点个数-(int)nodeCountOfTag:(NSString*)tag{ NSString*jsString=[NSStringstringWithFormat:@"document.getElementsByTagName('%@').length",tag]; intlen=[[selfstringByEvaluatingJavaScriptFromString:jsString]intValue];returnlen; } 获取所有图片链接 -(NSMutableArray*)getImgs