作者 lyh

gx

@@ -265,9 +265,9 @@ class Demo extends Command @@ -265,9 +265,9 @@ class Demo extends Command
265 // print_r($include); 265 // print_r($include);
266 // } 266 // }
267 public function handle(){ 267 public function handle(){
268 - $html = '<div><a>23423424</a><a href="#" class="logo img-box"><img src="https://cdn.globalso.com/fiberglass-expert/logo.png" alt="logoz9j"></a></div>'; 268 + $html = '<div><a>23423424</a><a href="#" class="logo img-box"><img src="https://cdn.globalso.com/fiberglass-expert/logo.png" alt="logoz9j"></a><img src = "123123"></div>';
269 $dom = str_get_html($html); 269 $dom = str_get_html($html);
270 - $texts = $dom->find('a',0); 270 + $texts = $dom->find('img',0);
271 // $texts = $dom->find('a', 0); 271 // $texts = $dom->find('a', 0);
272 dd($texts); 272 dd($texts);
273 // $projectModel = new Project(); 273 // $projectModel = new Project();