会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
徐同保
web前端行业的小学生
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
88
下一页
2024年4月25日
vite build vue3项目如何配置开启sourcemap
摘要: 在Vue 3项目中,配置Sourcemap主要取决于你使用的构建工具,通常是Vue CLI或者Vite。下面是在这两种情况下如何开启Sourcemap的步骤: Vue CLI 对于使用Vue CLI创建的项目,可以在项目的vue.config.js文件中配置: 找到或者在项目根目录下创建一个vue.
阅读全文
posted @ 2024-04-25 08:58 徐同保
阅读(2377)
评论(0)
推荐(0)
2024年4月24日
wechaty消息防撤回功能
摘要: let historyMsgList = [] const handleAddHistoryMsg = ({ msg }) => { if (historyMsgList.length < 10) { historyMsgList.push(msg) } else { historyMsgList.
阅读全文
posted @ 2024-04-24 15:43 徐同保
阅读(21)
评论(0)
推荐(0)
2024年4月23日
如果使用0x对node项目进行性能分析
摘要: 0x 是一个强大的 Node.js 性能分析工具,它可以帮助你进行堆栈追踪和火焰图分析。使用 0x 可以帮助你理解 Node.js 应用在运行时的性能瓶颈,进而优化代码。以下是如何使用 0x 对 Node.js 项目进行性能分析的步骤: 安装0x 首先,你需要在你的开发环境中安装 0x。你可以通过
阅读全文
posted @ 2024-04-23 17:07 徐同保
阅读(112)
评论(0)
推荐(0)
使用autocannon和0x对网站进行性能分析(node)
摘要: npm i autocannon -g autocannon -c 100 -d 5 -p 10 http://localhost:3000/ 0x -o app.js 火焰图是根据程序的栈的状态对出现函数的采样数据统计而得,宽度代表函数运行一次所需的时长、高度代表栈的层数、颜色深度代表函数在采样中
阅读全文
posted @ 2024-04-23 17:00 徐同保
阅读(61)
评论(0)
推荐(0)
如何在vscode里调试nodejs
摘要: npm install -g nodemon launch.json: { "version": "0.2.0", "configurations": [ { "name": "Nodemon", "type": "node", "request": "launch", "runtimeExecut
阅读全文
posted @ 2024-04-23 15:38 徐同保
阅读(30)
评论(0)
推荐(0)
2024年4月22日
在chrome控制台打印彩色文字和艺术字
摘要: import figlet from 'figlet' import standard from 'figlet/importable-fonts/Standard.js' if (process.env.REACT_APP_MODE 'dev' && false) { console.log('已
阅读全文
posted @ 2024-04-22 14:41 徐同保
阅读(36)
评论(0)
推荐(0)
nodejs在控制台打印艺术字
摘要: const figlet = require("figlet"); figlet("SUCCESS", function (err, data) { if (err) { console.log("Something went wrong..."); console.dir(err); return
阅读全文
posted @ 2024-04-22 14:09 徐同保
阅读(49)
评论(0)
推荐(0)
2024年4月19日
antd上传组件(Upload)如何设计成受控组件
摘要: https://ant-design.antgroup.com/components/upload-cn https://github.com/ant-design/ant-design/issues/2423 useAttachment.js: import React from 'react'
阅读全文
posted @ 2024-04-19 16:31 徐同保
阅读(90)
评论(0)
推荐(0)
2024年4月16日
gpt-4-turbo-2024-04-09在chat.lmsys.org测评中排名第一
摘要: https://chat.lmsys.org/?leaderboard 人工智能学习网站 https://chat.xutongbao.top
阅读全文
posted @ 2024-04-16 13:48 徐同保
阅读(26)
评论(0)
推荐(0)
2024年4月15日
momentjs获取星期几
摘要: { title: '星期', dataIndex: 'startTime', ellipsis: true, render: (text) => { text = moment(text - 0).weekday() let hook = { 0: { title: '星期日', className
阅读全文
posted @ 2024-04-15 09:37 徐同保
阅读(481)
评论(0)
推荐(0)
1
2
3
4
5
···
88
下一页
公告