会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
徐同保
web前端行业的小学生
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
23
24
25
26
27
28
29
30
31
···
88
下一页
2022年8月24日
postman主域名使用变量,动态修改主域名实现多环境测试
摘要:
阅读全文
posted @ 2022-08-24 15:10 徐同保
阅读(16)
评论(0)
推荐(0)
2022年8月22日
Windows 下安装 Bun:像 Node 或 Deno 一样的现代 JavaScript 运行时
摘要: 安装解压软件: sudo apt-get install unzip 安装bun: curl -fsSL https://bun.sh/install | bash 跳转到root文件夹 无权限的解决办法: chmod 777 /root/ 打开.bashrc文件 vim .bashrc 输入i 进
阅读全文
posted @ 2022-08-22 12:06 徐同保
阅读(92)
评论(0)
推荐(0)
2022年8月19日
vue项目使用可选链操作符编译报错问题
摘要: mounted() { let a = {} a?.b }, 解决方案: 装包: yarn add @babel/plugin-proposal-optional-chaining 修改babel.config.js: module.exports = { presets: [ '@vue/app'
阅读全文
posted @ 2022-08-19 15:23 徐同保
阅读(104)
评论(0)
推荐(0)
2022年8月18日
npm ERR ERESOLVE could not resolve(npm 装包报错)
摘要: 在NPM v7中,现在默认安装peerDependencies。 在很多情况下,这会导致版本冲突,从而中断安装过程。 --legacy-peer-deps标志是在v7中引入的,目的是绕过peerDependency自动安装;它告诉 NPM 忽略项目中引入的各个modules之间的相同modules但
阅读全文
posted @ 2022-08-18 10:16 徐同保
阅读(165)
评论(0)
推荐(0)
2022年8月15日
avue表格树
摘要: https://www.avuejs.com/crud/crud-tree.html#%E6%99%AE%E9%80%9A%E7%94%A8%E6%B3%95 关键配置: rowKey: "id", rowParentKey: "parent_id", defaultExpandAll: false
阅读全文
posted @ 2022-08-15 13:37 徐同保
阅读(56)
评论(0)
推荐(0)
js浮点数运算(加法、乘法)
摘要: let a = 0.1 let b = 0.2 let sum = a + b let sum1 = (a * 10 + b * 10) / 10 console.log(sum, sum1) const sum2 = 111.1 * 12 const sum3 = 111.1 * 100 * 12
阅读全文
posted @ 2022-08-15 10:52 徐同保
阅读(19)
评论(0)
推荐(0)
2022年8月11日
avue自定义搜索项(包括搜索项的label)
摘要: https://www.avuejs.com/crud/crud-search.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E5%88%97%E6%90%9C%E7%B4%A2 column: { label: "所属课程/课节", prop: "courseLesson",
阅读全文
posted @ 2022-08-11 13:29 徐同保
阅读(312)
评论(0)
推荐(0)
2022年8月8日
使用node.js 遍历判断本地文件夹内所有视频的总时长
摘要: const fs = require('fs') const path = require('path') //声明getTime函数,查找关键字,并计算时长 function getTime(buffer) { let start if (buffer.indexOf(Buffer.from('m
阅读全文
posted @ 2022-08-08 13:38 徐同保
阅读(44)
评论(0)
推荐(0)
2022年8月5日
两个node服务共同修改一个计数文件,互相监控服务是否停止
摘要: node服务A: const fs = require('fs') let timer let startValue //监控 const toolsMonitor = async (req, res) => { const monitorFilePath = '/temp/log/monitor.
阅读全文
posted @ 2022-08-05 14:59 徐同保
阅读(10)
评论(0)
推荐(0)
2022年8月4日
nginx子域名配置单独的日志文件
摘要: server { listen 80; server_name yuying-api.xutongbao.top; #配置根目录 location / { proxy_pass http://127.0.0.1:85; } access_log logs/access_yuyingapi.log;
阅读全文
posted @ 2022-08-04 12:02 徐同保
阅读(14)
评论(0)
推荐(0)
上一页
1
···
23
24
25
26
27
28
29
30
31
···
88
下一页
公告