Node.js中axios的使用 转
转自: https://www.cnblogs.com/itech/p/13253319.html http相关modules HTTP – the Standard Library Request Axios SuperAgent 推荐使…
记录学习和工作
转自: https://www.cnblogs.com/itech/p/13253319.html http相关modules HTTP – the Standard Library Request Axios SuperAgent 推荐使…
const express = require("express"); const app = express(); //设置跨域访问 app.all(" ",function(req,res,next){ //设置允许跨域的域名, 代表允…
/ 加入ip访问控制Start / let AccessControl = require('express-ip-access-control'); let options = { mode: 'allow', denys: [], al…
转自:https://www.cnblogs.com/liuyinlei/p/7267040.html 1.读取xlsx 文件依赖包:multiparty,XLSX,代码如下: var multiparty = require('multi…
转自:https://www.cnblogs.com/article-record/p/12762496.html 安装 Node 模块 npm install node-xlsx 读取文件 let list = xlsx.parse(pa…
转自:https://segmentfault.com/a/1190000012086435 bug 今天团队小伙伴给了我一个 json 配置文件,可以用如下替代(毕竟内容不是重点): { "text" : "this is a examp…
// 去除BOM头 stripBom = function(filePath){ let buff = fs.readFileSync(filePath); if (buff[0].toString(16).toLowerCase() ==…
转自: https://www.cnblogs.com/ybixian/p/12296205.html 原文: https://www.jianshu.com/p/36cc5042ef12 / 文件下载 @param { } url 下载地…
events.js:141 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE :::9000 at Object.exports. e…
转自:http://mrdede.com/?p=1126 使用模块 node-windows npm官网: https://www.npmjs.com/package/node-windows github官网: https://githu…