Django 请求类型

// GET请求
request.GET


// POST请求
request.POST


// 处理文件上传请求
request.FILES


// 处理如checkbox等多选 接受列表
request.getlist


// 查看请求类型
request.method


// 查看请求源地址
request.path_info

猜你喜欢

转载自www.cnblogs.com/ajaxa/p/9262331.html