会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qing1224
博客园
首页
新随笔
联系
订阅
管理
2025年3月6日
vue 中使用代码编辑器vue-codemirror
摘要: Vue-Codemirror 安装与使用指南 项目地址:https://gitcode.com/gh_mirrors/vu/vue-codemirror 1、安装(两个都需要安装) npm i vue-codemirror@4.x --save npm i codemirror@5.x --sa
阅读全文
posted @ 2025-03-06 14:57 Qing`ing
阅读(808)
评论(0)
推荐(0)
2024年11月29日
查找数组中相似字段(数组里面某个值相似归类到一起)
摘要: 例如↓数组中每条数据的url字段相似 arr = [ { id:0, dir:'/edit/aaaa/bbbb/cccc/dddd/20231123', title:'第一条数据' }, { id:1, dir:'/edit/aaaa/bbbb/cccc/dddd/20241011', title:
阅读全文
posted @ 2024-11-29 18:35 Qing`ing
阅读(30)
评论(0)
推荐(0)
2024年10月10日
根据指定字符串在字符串(想要替换的字符串)中找到并替换
摘要: removeFun(description) { description = description.replace(/<\/?[^>]*>/g, ''); // 去除HTML tag 如果后端返回的数据或者处理的数据不带标签 不用写这一步 ————以上都是去除 后端返回的 "<span cla
阅读全文
posted @ 2024-10-10 15:05 Qing`ing
阅读(13)
评论(0)
推荐(0)
antd中的多选框defaultValue失效问题
摘要: antd中的 Checkbox.Group 属性中的 defaultValue为数组 当改变某个状态需要改变这个数组 发现失效 解决办法: Checkbox.Group添加 key值 为defaultValue指定的数组 当key值发生变化组件会重新渲染,从而使更新后的defaultValue属性生
阅读全文
posted @ 2024-10-10 15:04 Qing`ing
阅读(152)
评论(0)
推荐(0)
SHA256加密-前端 中 HMAC-SHA256的base64加密 和 md5加密
摘要: 1、 HMAC-SHA256的base64加密 首先 npm install crypto-js --save 项目中使用 1 2 3 4 5 import CryptoJS from 'crypto-js'; const hash = CryptoJS.HmacSHA256(zhuan, 'sec
阅读全文
posted @ 2024-10-10 15:02 Qing`ing
阅读(710)
评论(0)
推荐(0)
一维数组变二维数组
摘要: 前言 当出现相同的参数 根据另一个特定参数来改变数据 改变原因 如下图 出现相同的名字但是版本号不同 下拉框数据是 版本号 改变版本号时候改变这一条数据 所以 一个大数组中分为每个对象 每个对象两个参数 第一个参数: 是选中的版本号 第二个参数是相同名字的数据组成一个对象 key是版本号 对应他
阅读全文
posted @ 2024-10-10 15:01 Qing`ing
阅读(80)
评论(0)
推荐(0)
2024年7月24日
react-flow 动态流程图
摘要: 安装: npm install reactflow (我的版本是npm install reactflow@11.11.4) reactflow 官网 https://reactflow.dev/ 内置组件 <Background/>插件实现了一些基本的可定制背景模式。 <MiniMap/>插件在屏
阅读全文
posted @ 2024-07-24 17:54 Qing`ing
阅读(711)
评论(0)
推荐(0)
2024年5月29日
code EACCESnpm ERR! syscall renamenpm ERR! path /usr/local/bin/webpack errno -13
摘要: 在终端运行 sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} 以后输入自己要安的即可!
阅读全文
posted @ 2024-05-29 16:18 Qing`ing
阅读(76)
评论(0)
推荐(0)
2024年4月23日
echarts柱状图 实现点击每个柱状图跳转到新页面
摘要: myChart.setOption(option); myChart.getZr().on('click', params => { // 规定代码块↓↓ const pointInPixel = [params.offsetX, params.offsetY]; if (myChart.conta
阅读全文
posted @ 2024-04-23 18:27 Qing`ing
阅读(1219)
评论(0)
推荐(0)
2024年4月18日
echarts对柱状图进行标注,以及取消hover时的阴影
摘要: tooltip: { trigger: 'axis', padding: [5, 10], axisPointer: { type: '' }, }
阅读全文
posted @ 2024-04-18 15:12 Qing`ing
阅读(296)
评论(0)
推荐(0)
下一页
公告