<?php
$oA= $_POST['cent'];
$url= "此处已被省略";
include "./vendor/autoload.php";
use \QL\QueryList;
$rules=array(
"img"=>array(".cell .cell_poster img",'src'),
"title"=>array(".cell .cell_imform .cell_imform_name",'text'),
"time"=>array(".blockcontent1 .cell .cell_imform .cell_imform_kvs div:eq(3) .cell_imform_value",'text'),
"author"=>array(".blockcontent1 .cell .cell_imform .cell_imform_kvs div:eq(7) .cell_imform_value",'text'),
"state"=>array(".blockcontent1 .cell .cell_imform .cell_imform_kvs div:eq(4) .cell_imform_value",'text'),
"type"=>array(".blockcontent1 .cell .cell_imform .cell_imform_kvs div:eq(6) .cell_imform_value",'text'),
"about"=>array(".blockcontent1 .cell .cell_imform .cell_imform_kvs div:eq(8) .cell_imform_desc",'text'),
);
$data=QueryList::Query($url,$rules)->data;
// echo "<pre>";
// print_r($data);
echo json_encode($data);
?>
你最好把代码贴出来,否则很难判断为什么没有输出来
您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps: 问答会员年卡【8折】购 ,限时加赠IT实体书,即可 享受50次 有问必答服务,了解详情>>>https://t.csdnimg.cn/RW5m