Promise 中的.all(), .race(), .allSettled() Promise.all(promises: Iterable<Promise>): Promise<Array> Promise.all(iterable) 方法返回一个 Pr...
nodejs Assert中equal(),strictEqual(),deepEqual(),strictDeepEqual()比较 1、equal() equal(actual,expected[,message]) 相当于使用 == 运算符比较两个参数值actual和expected是否相等,如果相等不返回任何值,如果不相等则返...
nodejs cookie和token设置 链接MySQL数据库 在数据建立完整后,在node中操作链接 /数据库/ var Client = require('mysql').createConnection({ host: '127.0.0...
antd tree渲染问题 需求如下,当页面初始化后加载一级目录,当点击一级目录展开相应的子集,当右击添加一级目录时候,原来的结构不变,实现如下: 点击时候将loadedKeys记录,当重新加载一级目录时候,将loadedKey...
配置nginx显示目录文件列表 对于像ftp那样显示文件列表,nginx默认是不支持的,需要通过在location、server或http配置段添加额外参数: autoindex on; # 开启目录文件列表 autoi...
yum install nginx发生Loaded plugins: fastestmirror 错误 yum install nginx发生的错误 yum install nginx Loaded plugins: fastestmirror, ovl Loading mirror speeds fr...
bbr加速 https://blog.verkey.org/209.html wget -N --no-check-certificate "https://raw.githubusercontent.com/c...
curl查看公网ip liuzhizhi@lzz-rmbp|logs # curl ipinfo.io { "ip": "114.110.1.38", "hostname": "No Hostn...
aria2c配置 /mnt/usb2/aria2v1.19/bin/aria2c --conf-path=/mnt/usb2/aria2v1.19/aria2.conf --enable-rpc -D #用户名 #rp...
windows10中远程登录ubuntu16.04的桌面 安装xrdp sudo apt-get install xrdp 1 安装vnc4server sudo apt-get install vnc4server tightvncserver 1 安装x...