isGet
isPost
isPut
isDelete
isHead
方法是
if($this->isGet)
{
same function;
}
还有一个是 是否为 ajax方法
isAjax
如果非jquery的话,要在表示加入一个隐藏的 名为 ajax字段.才可生效
Think php 3.0 判断请求类型,发现也比较好用.
阅读 173
2022-11-21
isGet
isPost
isPut
isDelete
isHead
方法是
if($this->isGet)
{
same function;
}
还有一个是 是否为 ajax方法
isAjax
如果非jquery的话,要在表示加入一个隐藏的 名为 ajax字段.才可生效
相关推荐
精彩评论(0)