这样做的工作,显示以下项目:Jsoup不会提取SRC ATTR
I/System.out﹕ <img width="650" height="400" src="http://www.somesite.net/wp-content/uploads/2015/09/11937978_482236235278145_7661294603539537192_o-650x400.jpg" class="attachment-small-thumb wp-post-image" alt="11937978_482236235278145_7661294603539537192_o-650x400">
09-02 20:43:31.191 2969-3005/net.android I/System.out﹕ <img width="650" height="400" src="http://www.somesite.net/wp-content/uploads/2015/09/Screenshot_16-650x400.jpg" class="attachment-small-thumb wp-post-image" alt="Screenshot_16-650x400">
我尝试它包裹在for(Element e : els)
,检索内部和外部的功能,它通过为字符串,并使用System.out.print(stringname)
同时使用,
String absoluteUrl = els.absUrl("src"); //absolute URL on src
String srcValue = els.attr("src");
,但它只是d没有工作。我尝试搜索Stackoverflow,但没有类似的问题。
在此先感谢。
请创建一个[MCVE](http://stackoverflow.com/help/mcve)。 – tachyonflux