作者 lyh

gx

@@ -269,7 +269,7 @@ class Demo extends Command @@ -269,7 +269,7 @@ class Demo extends Command
269 $html = str_get_html($html); 269 $html = str_get_html($html);
270 $dom = new \simple_html_dom(); //new simple_html_dom对象</p><p> 270 $dom = new \simple_html_dom(); //new simple_html_dom对象</p><p>
271 $domHtml = $dom->load($html); 271 $domHtml = $dom->load($html);
272 - $texts = $domHtml->find("a[class=logo]",0); 272 + $texts = $domHtml->find('a');
273 // $texts = $dom->find('a', 0); 273 // $texts = $dom->find('a', 0);
274 dd($texts); 274 dd($texts);
275 // $projectModel = new Project(); 275 // $projectModel = new Project();