随笔分类 - nodejs
摘要:前端报错 cors 跨域 解决方法: 1. 安装 koa2-cors npm install koa2-cors 2. 在 app.js 里 加上: const Koa = require('koa') const app = new Koa() const cors = require('koa2
阅读全文
摘要:nodejs 运行下面代码: 报错: Error ENOENT : no such file or directory, open 'input.txt' 解决: var fs = require("fs"); let path = require('path'); // 引入path le
阅读全文


浙公网安备 33010602011771号