随笔分类 - node
摘要:#!/usr/bin/env 指定脚本的解释程序 添加 #!/usr/bin/env node 指定用node执行脚本文件 可以通过which node来查找node安装路径 再将/usr/bin/env 改成node真实的安装路径 引用文章: https://blog.csdn.net/weixi
阅读全文
摘要:环境:egg框架下 1. 安装egg-cors(npm亦可) yarn add egg-cors 2、app/config/plugin.js cors: { enable: true, package: 'egg-cors', }, 3、app/config/config.default.js c
阅读全文

浙公网安备 33010602011771号