摘要: const arr = [] for (let i = 0; i < 10000; i++) { const tempStr = Math.random().toString(36).substr(2, 6) arr.push(tempStr) } //es6提供的new Set也可以去重 let 阅读全文
posted @ 2021-10-21 18:15 徐同保 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 81端口和84端口部署了两套node服务,接口相同 如果对81端口的请求加上特定的字符,则把请求转发到84上 app.js: const express = require('express') const bodyParser = require('body-parser') const cors 阅读全文
posted @ 2021-10-21 15:48 徐同保 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 备份这三个文件 需要恢复时把这三个文件拷贝回来,再重新读取一下: 阅读全文
posted @ 2021-10-21 10:43 徐同保 阅读(0) 评论(0) 推荐(0) 编辑