<?php
namespace app\index\controller;
use think\Controller;
class Demo extends Controller
{
public function __construct(){}//为啥去掉__construct这块,代码就能运行?
public function index()
{
die($this->request->url(true));
}
}致命错误: Call to a member function url() on null
1.jpg
( 81.2 KB 下载:1 次 )
最佳答案