TP6框架获取参数的方式
时间:2021-08-23 23:01:33
收藏:0
阅读:25
1、$this->request->param(‘字段名‘,‘默认值‘,‘接收参数类型‘);
2、input(‘字段名‘,‘默认值‘,‘接收参数类型‘);
3、request()->param(‘字段名‘,‘默认值‘,‘接收参数类型‘);
4、\think\facade\Request::param(‘字段名‘,‘默认值‘,‘接收参数类型‘);
原文:https://www.cnblogs.com/lzp4510/p/15177390.html
评论(0)