<u>复制代码</u> 代码如下:<br>$nodes = @$xpath->query("//*[@id='main_pr']/img/@src");<br>$prurl = $nodes->item(0)->nodeValue;<br>