美文网首页
TP 从接口获取客户端发送数据

TP 从接口获取客户端发送数据

作者: Albert新荣 | 来源:发表于2019-10-04 21:18 被阅读0次
    
    
    { $request = Request::instance(); $method = $request->method();//获取上传方式
    
        $request->param();//获取所有参数,最全
    
        $get = $request->get();获取get上传的内容 $post = $request->post();获取post上传的内容 $request->file('file')获取文件
    
    }
    
    View Code
    
    或
    
    { $method = $this->request->method();//获取上传方式
    
         $this->request->param();//获取所有参数,最全
    
        $get =  $this->request->get();获取get上传的内容 $post =  $this->request->post();获取post上传的内容 $this->request->file('file')获取文件
    
    }
    
    

    相关文章

      网友评论

          本文标题:TP 从接口获取客户端发送数据

          本文链接:https://www.haomeiwen.com/subject/plsgectx.html