yii2如何判断是否是post提交表单

2020-08-24 07:16:51

判断post提交

if(Yii::$app->request->isPost){    return true; }else{    return false; }

判断get提交

if(Yii::$app->request->isGet){    return true;}else{    return false; }

更多编程相关内容,请关注php中文网编程入门栏目!

相关文章 大家在看