## 接收HTTP参数 > 获取请求方式 ~~~ Request::method() ~~~ > 判断请求方式 ~~~ Request::isGet(); Request::isPost(); Request::isAjax(); ~~~ > 获取参数以`POST`为例其他一样 ~~~ Request::post($data = null); ~~~ 当`$data`不传递或值为`null`时返回所有`POST数据` 例子1: ~~~ Request::post(); ~~~ 当`$data`为`字符串`时返回单个 例子2: ~~~ Request::post('title'); ~~~ 当`$data`为`数组时`返回多个 例子3: ~~~ Request::post(['title', 'name']); ~~~ > 全部方法 ~~~ Request::post($data = null); Request::get($data = null); Request::cookie($data = null); ~~~ > 获取请求IP ~~~ Request::ip(); ~~~