会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
随手笔记
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2023年4月13日
js正则表达式
摘要: \d 查找数字 \D 查找非数字字符 \s 查找空白字符 \S 查找非空白字符 \w 查找数字、字母及下划线 \W 查找非单词字符 \n 查找换行符 \0 查找 NULL 字符 \r 查找回车符 n+ 查找一个或者多个 如: /a+/ 匹配 "candy" 中的 "a","caaaaaaandy"
阅读全文
posted @ 2023-04-13 16:45 Life_countdown
阅读(28)
评论(0)
推荐(0)
2023年4月12日
文件分片上传
摘要: import md5 from 'md5'; import fetch from './fetch'; const baseUrl = '/xxx'; // 分片上传的公共接口 const separateFileUpload = data => { return fetch({ url: `${b
阅读全文
posted @ 2023-04-12 13:51 Life_countdown
阅读(63)
评论(0)
推荐(0)
关于map和Promise.all搭配使用
摘要: 场景一: // 注意:此时map会发送请求 Promise.all只为拿到并发的结果 const requestBus = rawData.map(v => getfeedbackfielddata({ table_name: v.rule.rule.from.table_name_en })) P
阅读全文
posted @ 2023-04-12 11:39 Life_countdown
阅读(389)
评论(0)
推荐(0)
2023年3月9日
简单的echarts封装,
摘要: <template> <div :id="id" class="e_box"></div> </template> import { ref, onMounted, watch } from 'vue'; import * as echarts from 'echarts'; const props
阅读全文
posted @ 2023-03-09 10:51 Life_countdown
阅读(42)
评论(0)
推荐(0)
2023年3月3日
vue3组件透传
摘要: ```html ``` 核心:v-bind="$attrs" 在父组件中直接使用UI组件的API,如需要单独传递参数,则正常使用defineProps即可(尽量不要和UI组件的API重复,若重复,则优先defineProps中的属性) ```javascript import baseDialog
阅读全文
posted @ 2023-03-03 09:44 Life_countdown
阅读(151)
评论(0)
推荐(0)
2023年2月27日
pinia学习
摘要: piniaPluginPersist插件做pinia持久化 // 首先 npm install pinia-plugin-persistedstate // main.js import { createApp } from 'vue' import { createPinia } from 'pi
阅读全文
posted @ 2023-02-27 17:51 Life_countdown
阅读(122)
评论(0)
推荐(0)
2023年2月23日
菜单权限
摘要: <el-menu :default-active="activePath" class="el-menu-vertical-demo" :class="isCollapse ? 'isCollapse_menu' : ''" router active-text-color="#fff" text-
阅读全文
posted @ 2023-02-23 11:32 Life_countdown
阅读(27)
评论(0)
推荐(0)
2023年2月7日
实现:动态表单验证 vue2.x 和vue3
摘要:  // 表单的数据格式 ```javascript const obj = { zdmc: '', sffk: un
阅读全文
posted @ 2023-02-07 18:24 Life_countdown
阅读(149)
评论(0)
推荐(0)
2022年12月1日
css一些图片处理
摘要: img { /* contrast 调整对比度单位 % 默认100% 50%时和brightness的0.5效果类似 */ filter: contrast(500%); /* 马赛克属性 blur 单位 px 默认0 也适用于文本 */ filter: blur(10px); /* 亮度属性 br
阅读全文
posted @ 2022-12-01 19:47 Life_countdown
阅读(38)
评论(0)
推荐(0)
2022年11月11日
post请求传formdata格式
摘要: const formData = new FormData(); fileList.value.forEach(file => { formData.append('multipartFile', file); }); formData.append( 'jsonPram', JSON.string
阅读全文
posted @ 2022-11-11 18:48 Life_countdown
阅读(189)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告