Can anyone help me explain what it means?
P粉480079166
P粉480079166 2022-07-21 15:47:42
0
3
672

public function lists()

    {

        if ($this->request->isAjax()) { //

            $get = $this->request->get();

            $lists = ArticleLogic::lists($get);

            return JsonServer::success("获取成功", $lists);

        }

        return view('', [

            'category' => ArticleCategoryLogic::getCategory()

        ]);

    }

P粉480079166
P粉480079166

reply all(1)
autoload

The general understanding is: determine whether the request is Ajax. If so, use the static method lists of ArticleLogic to obtain the value in the database that matches the parameters in the get request, and return the returned value. If not, return a view. Of course Contains the value of the category parameter

  • reply That's probably what it means
    P粉480079166 author 2022-07-22 09:46:01
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template