上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页
摘要: -P, --save-prod: 包将出现在你的 dependencies 中。 这是默认值,除非存在 -D 或 -O。 -D, --save-dev: 包将出现在你的 devDependencies 中。 package.json中dependencies与devDependencies区别 de 阅读全文
posted @ 2023-09-16 23:41 Syinho 阅读(108) 评论(0) 推荐(0)
摘要: test test1 test2 test3 test4 test5 test6 test7 test8 test9 阅读全文
posted @ 2023-09-15 14:18 Syinho 阅读(11) 评论(7) 推荐(0)
摘要: 在博客园的请求/ajax/GetPostStat中, 发现这个post请求发送的是一个数组 export const reqGetArticleCountData = id => instance.post('/ajax/GetPostStat', { data: JSON.stringify([i 阅读全文
posted @ 2023-09-15 04:44 Syinho 阅读(56) 评论(0) 推荐(0)
摘要: 安装 npm install --save-dev http-proxy-middleware 代理中间件配置 createProxyMiddleware([context,] config) const { createProxyMiddleware } = require('http-proxy 阅读全文
posted @ 2023-09-14 01:21 Syinho 阅读(1014) 评论(0) 推荐(0)
摘要: 打开 D:\test\html 目录 start D:\test\html explorer D:\test\html start命令与explorer命令的不同 explorer可以通过explorer ./ 命令打开当前路径目录的图形化界面, start ./ 则会报错 阅读全文
posted @ 2023-09-13 00:07 Syinho 阅读(75) 评论(88) 推荐(1)
摘要: node.js的HTTP请求记录器中间件 基本使用 morgan(format,options) 使用预定义的格式字符串 morgan('tiny') 使用预定义令牌的格式字符串 morgan(':method :url :status :res[content-length] - :respons 阅读全文
posted @ 2023-09-12 00:35 Syinho 阅读(86) 评论(0) 推荐(0)
摘要: 首先使用ipconfig/all确定自己的ip地址 再使用for /L %i IN (1,1,254) DO ping -w 2 -n 1 192.168.0.%i命令轮询局域网内的所有可访问的ip地址, 注意根据自己的ip地址修改这条命令的轮询地址占位 轮询结束, 使用arp -a命令获取轮询结果 阅读全文
posted @ 2023-09-12 00:33 Syinho 阅读(208) 评论(1) 推荐(0)
摘要: 错误原因: 禁止在条件语句中出现赋值操作符(no-cond-assign). 我在while()循环语句循环条件中写入了赋值代码 while(articleIdArrRes=reg_articleId.exec(str)){ data.articleIdArr.push(articleIdArrRe 阅读全文
posted @ 2023-09-12 00:32 Syinho 阅读(39) 评论(0) 推荐(0)
摘要: - node.js的HTTP请求记录器中间件 ### 基本使用 - ``` morgan(format,options) ``` - 使用预定义的格式字符串 - ```js morgan('tiny') ``` - 使用预定义令牌的格式字符串 - ```js morgan(':method :url 阅读全文
posted @ 2023-09-08 00:03 Syinho 阅读(78) 评论(0) 推荐(0)
摘要: ### 安装 ``` npm install -g express-generator ``` ### 创建一个脚手架 ``` express --no-view express_generator ``` - 如上代码, 在当前目录下的expresss_generator目录创建一个应用 ### 阅读全文
posted @ 2023-09-06 16:00 Syinho 阅读(152) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页