摘要: 简单的设计一个权限比对方式: 1、假设有以下权限数字 const a = 1 const b = 2 const c = 4 const d = 8 const e = 16 转换成二进制为 console.log('a:', parseInt(a).toString(2)) console.log 阅读全文
posted @ 2021-08-10 11:13 fengyujia 阅读(76) 评论(0) 推荐(0) 编辑
摘要: const child_process = require('child_process'); // 起一个子进程 const workerProcess = child_process.exec('node right.js'); // 获取pid const pid = workerProces 阅读全文
posted @ 2021-08-10 11:01 fengyujia 阅读(799) 评论(3) 推荐(0) 编辑
摘要: 1、在中间件接收 // 文档写着编码有两种,utf-8和iso-8859-1二选一,默认为utf-8,如果要调整为iso-8859-1,extended需要为true app.use(bodyParser.text({defaultCharset:'iso-8859-1'})); app.use(b 阅读全文
posted @ 2021-08-10 10:46 fengyujia 阅读(123) 评论(0) 推荐(0) 编辑