Promise模拟,尝试手写Promise 思考 Promise通过new Promise 使用,并通常会传入一个函数,这个函数有两个参数,一个是resolve,一个是reject,resolve应该是一个可以解决事情的函数,reject应该是一个当事情没有得到解决时的处理函数,所以Promise应 ...
分类:
其他好文 时间:
2021-06-17 16:31:23
阅读次数:
0
一、是什么 process 对象是一个全局变量,提供了有关当前 Node.js进程的信息并对其进行控制,作为一个全局变量 我们都知道,进程计算机系统进行资源分配和调度的基本单位,是操作系统结构的基础,是线程的容器 当我们启动一个js文件,实际就是开启了一个服务进程,每个进程都拥有自己的独立空间地址、 ...
分类:
其他好文 时间:
2021-06-15 18:45:21
阅读次数:
0
nginx.conf配置 #user nobody; user www www; worker_processes 8; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log in ...
分类:
其他好文 时间:
2021-06-13 09:55:40
阅读次数:
0
1.Django与Ajax 2.分页器组件 3.forms组件 4.cookie与session组件 5.中间件组件 6.Auth模块 1.Django与Ajax # 通过ajax向https://api.help.bj.cn/apis/life29/?id=101060101发送请求,看看能不能拿 ...
分类:
其他好文 时间:
2021-06-11 18:16:04
阅读次数:
0
import multiprocessing, time, os# def pro(name):# print('hello', name, time.ctime())## if __name__ == '__main__':# l = []# for t in range(4):# t = mul ...
分类:
系统相关 时间:
2021-06-08 23:20:39
阅读次数:
0
子流程 子流程 描述 子流程(Sub-process)是一个包含其他节点,网关,事件等等的节点 本身就是一个流程,同时是更大流程的一部分.子流程是完全定义在父流程里的,所以叫做内嵌子流程 子流程的两种主要场景: 子流程可以使用继承式建模: 很多建模工具的子流程可以折叠,把子流程的内部细节隐藏,显示一 ...
分类:
其他好文 时间:
2021-06-07 20:38:19
阅读次数:
0
Origin 画不等距数据分布直方图 data with different Bin size 觉得有用的话,欢迎一起讨论相互学习~ 参考资料 使用 origin 画 SCI 论文图 问题 数据分布存在着0-1之间分布很密集而1.1-2.1之间没有分布,转而是1-100之间具有分布。类似于下图。下图 ...
分类:
其他好文 时间:
2021-06-07 20:38:04
阅读次数:
0
The production process of sand making machine is mainly as: (stock bin) - feeder - jaw crusher - impact crusher - vibrating screen - (finished product... ...
分类:
系统相关 时间:
2021-06-07 20:28:50
阅读次数:
0
问题描述 Extension Installation Error An error occurred installing @jupyterlab/github. Error message: Please install Node.js and npm before continuing ins ...
分类:
Web程序 时间:
2021-06-04 19:15:49
阅读次数:
0
Lambda integration with ALB HTTP(s) Lambda function must be registered in a target group ALB Multi-Header Values If a client connect to ALB, we can co ...
分类:
移动开发 时间:
2021-06-03 18:21:09
阅读次数:
0