首頁  >  問答  >  主體

沒報錯但是取不到值,只能列印出 學習


namespace app\index\controller;
use think\Controller;
class Test1 extends Controller
{
public function index(){
       return 'shepi';
   }
   public function demo3()
   {
      );
   }
   public function demo4()
   {
       return '學習'.$this->request->get('lesson');##  學習'.$this->request->get('lesson');##  學習'. Request::instance()->param('lesson');
   }
}

实.实.2373 天前1584

全部回覆(3)我來回復

  • 梦游天下

    梦游天下2018-04-15 17:26:21

    tp5.com/index/test1/demo3/lesson/dddd 測試的沒問題啊,你是不是用的demo4方法?

    回覆
    0
  • 实.

    实.2018-03-27 09:57:38

    傳了值 啊  tp5.com/index/test1/demo3/lesson/dddd 

    #

    回覆
    0
  • 路过

    路过2018-03-27 08:26:51

    你傳值了嗎?

    回覆
    0
  • 取消回覆