Manual Pembangunan Pengumpul QueryList / getHtml( ) 獲取目標頁面源碼 getHtml( ) 獲取目標頁面源碼 getHtml( ) 方法返回值:string獲取目標頁面源碼,主要用于調(diào)試。原型:getHtml($rel = true)參數(shù): $rel類型:bool默認值:true當參數(shù)為true時,返回phpQuery最終看到的HTML源碼;當參數(shù)為false時,返回傳給phpQuery之前的HTML源碼。 ← getData( ) 獲取采集結果 setQuery( ) 重新設置選擇器 →