官方源安装nginx、网站访问量相关术语、nginx主配置文件详解、自定义日志格式调用。 ...
分类:
其他好文 时间:
2020-07-12 19:00:32
阅读次数:
92
封装一个redis操作,代码如下: class Redis { use Singleton; public static $redis = ""; //私有化构造函数 private function __construct() { // if (!extension_loaded('redis') ...
分类:
Web程序 时间:
2020-07-12 14:35:09
阅读次数:
129
修复前self.r =requests.post(url,params=params,headers=headers,timeout=Interface_Time_Out)修复后self.r =requests.post(url,data=params,headers=headers,timeout ...
分类:
编程语言 时间:
2020-07-12 00:57:06
阅读次数:
521
概要: # 1 请求和响应 # 2 请求 Request对象,drf新包装的,Request.data,Request.query_params, 重写了__getattr__, request._request # 3 json模块是否执行反序列化bytes格式 # 4 考你:视图类的方法中:se ...
分类:
其他好文 时间:
2020-07-10 21:00:49
阅读次数:
72
Header 和 Params 的区别: Headers The REST headers and parameters contain a wealth of information that can help you track down issues when you encounter th ...
分类:
其他好文 时间:
2020-07-10 16:59:18
阅读次数:
62
1、封装导出的方法 export function httpExport (url, params) { return new Promise((resolve, reject) => { axios({ url: url, method: 'post', data: params, respons ...
分类:
其他好文 时间:
2020-07-10 13:28:45
阅读次数:
103
1, // 获取参数设置 app.get('/getPara', function(req, res) { // console.log(req.hostname); // console.log(req.params); // console.log(req.path); console.log( ...
分类:
Web程序 时间:
2020-07-10 12:59:36
阅读次数:
87
一、请求对象 1、重新封装了原request。 2、request._request:原request对象。 3、request.data:前端post过来的三种编码格式的数据,都可以从中取出。 4、request.query_params:url携带的参数,相当于原来的request.GET。 5 ...
分类:
其他好文 时间:
2020-07-09 15:24:57
阅读次数:
64
视图简写 1 请求和响应 1.1 请求 from rest_framework.request import Resquest # 在Resuquest中,对原生request进行了一次封装,self._request = request def __getattr__(self, item): r ...
分类:
其他好文 时间:
2020-07-09 00:33:53
阅读次数:
106
一、数组中其余的常用方法 包括map,filter,every,some方法,我们分别进行举例 //map定义一个函数用来遍历原来老的数组 var arr = [10,20,5,1000,50]; var newArr = arr.map(function(value, index, array){ ...
分类:
编程语言 时间:
2020-07-06 01:34:02
阅读次数:
91