2015-04-08 47 views

回答

0

filterXPath允許通過XPath表達式來過濾,而filter允許通過CSS選擇進行過濾。 例如:

$crawler = $crawler->filterXPath('descendant-or-self::body/p'); 
$crawler = $crawler->filter('body > p'); 
相關問題