您的当前位置:首页>全部文章>文章详情

thinkphp查询时排除字段

发表于:2024-04-16 12:00:57浏览:352次TAG: #ThinkPHP #排除字段 #不显示字段

关键代码

->field(['content','description'],true)

完整示例

$jm = new \app\admin\model\cms\Job();
$job_list = $jm
        ->field(['content','description'],true)
        ->where($where)
        ->order("weigh desc")
        ->paginate(6,false,['query'=>$this->request->param()]);