上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: http://jsrun.net/t/KfkKp https://www.wenjiangs.com/doc/tlsizw1dst https://www.w3cschool.cn/electronmanual/electronmanual-browser-window.html 使用 Browse 阅读全文
posted @ 2022-11-03 11:38 时光凉忆 阅读(495) 评论(0) 推荐(0)
摘要: 1、web向主进程发送消息 (单项) 使用ipcMain.on 监听事件 const hanle = (event, data) => { console.log(event) console.log(data) } ipcMain.on('close', handle) 使用 ipcRendere 阅读全文
posted @ 2022-11-03 11:05 时光凉忆 阅读(62) 评论(0) 推荐(0)
摘要: 举例说明: const arr = [1, 2, 3] arr.forEach(async item => { // ... }) 上面的代码校验会出一个警告,从 forEach argument 返回的 Promise 被忽略 主要原因: foreach里面的回调函数因为加了async的原因,所以 阅读全文
posted @ 2022-09-05 12:09 时光凉忆 阅读(541) 评论(0) 推荐(0)
摘要: 先说说我实现懒加载失效的一个原因: 是图片没有写高度 猜想是没有给图片高度,所以底层没法进行计算 容器是否出现在视图中 IntersectionObservers作用 提供了一种异步观察目标元素与其祖先元素或顶级文档视窗 (viewport) 交叉状态的方法,观察目标元素是否出现在视图窗口 实现一个 阅读全文
posted @ 2022-08-29 13:34 时光凉忆 阅读(209) 评论(0) 推荐(0)
摘要: 使用pm2-logrotate 解决pm2日志体积过大,进行分割 什么是pm2-logrotate? pm2-logrotate 是一个pm2的插件,可以对pm2日志进行管理,所以它的运行需要依靠pm2 安装: 注:该命令是 pm2 install不是 npm install pm2 install 阅读全文
posted @ 2022-08-27 09:56 时光凉忆 阅读(1130) 评论(0) 推荐(0)
摘要: axios 文档 配置局部取消请求 这种相当于局部的取消请求,作用于单个请求中 import axios from 'axios' const source = axios.cancelToken.source() axios .get('getData', { cancelToekn: sourc 阅读全文
posted @ 2022-08-24 22:18 时光凉忆 阅读(280) 评论(1) 推荐(1)
摘要: 配置了 .gitigore 文件不生效,是刚开始将那些过滤的文件加到了版本控制。后续增加的,没有进入到版本控制 解决办法就是从版本控制移除,重新更新下gitignore文件 执行以下命令: 根据情况自行push git rm -r --cached . //删除缓存 git add . git co 阅读全文
posted @ 2022-08-22 09:55 时光凉忆 阅读(1160) 评论(0) 推荐(0)
摘要: echarts:https://echarts.apache.org/zh/api.html#events.legendselected tfjy1997:https://blog.csdn.net/wgf1997/article/details/124815817 数据图形 设置高亮 this.m 阅读全文
posted @ 2022-07-09 11:40 时光凉忆 阅读(1400) 评论(0) 推荐(0)
摘要: Vue配置 1、安装 npm install --save-dev compression-webpack-plugin@5.0.0 const CompressionWebpackPlugin = require('compression-webpack-plugin') module.expor 阅读全文
posted @ 2022-07-04 17:03 时光凉忆 阅读(608) 评论(0) 推荐(0)
摘要: Array.forEach() 该方法用于遍历数组 let arr = [1, 3, 5, 7, 2, 4, 6] arr.forEach((item, index, array) => { console.log(item, index, array) }) // 1 0 [1, 3, 5, 7, 阅读全文
posted @ 2022-06-11 15:03 时光凉忆 阅读(298) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页