正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -267,7 +267,8 @@ class Demo extends Command | @@ -267,7 +267,8 @@ class Demo extends Command | ||
| 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></div>'; |
| 269 | $dom = str_get_html($html); | 269 | $dom = str_get_html($html); |
| 270 | - $texts = $dom->find('a', 0); | 270 | + $texts = $dom->find("a[class=logo]",0); |
| 271 | +// $texts = $dom->find('a', 0); | ||
| 271 | dd($texts); | 272 | dd($texts); |
| 272 | // $projectModel = new Project(); | 273 | // $projectModel = new Project(); |
| 273 | // $list = $projectModel->list(['delete_status'=>0,'type'=>['!=',0]]); | 274 | // $list = $projectModel->list(['delete_status'=>0,'type'=>['!=',0]]); |
-
请 注册 或 登录 后发表评论