摘要: \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)
摘要: 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只为拿到并发的结果 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)
摘要: <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)
摘要: ```html ``` 核心:v-bind="$attrs" 在父组件中直接使用UI组件的API,如需要单独传递参数,则正常使用defineProps即可(尽量不要和UI组件的API重复,若重复,则优先defineProps中的属性) ```javascript import baseDialog 阅读全文
posted @ 2023-03-03 09:44 Life_countdown 阅读(151) 评论(0) 推荐(0)
摘要: 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)
摘要: <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)
摘要: ![](https://img2023.cnblogs.com/blog/2630705/202302/2630705-20230207180743665-411703920.png) // 表单的数据格式 ```javascript const obj = { zdmc: '', sffk: un 阅读全文
posted @ 2023-02-07 18:24 Life_countdown 阅读(149) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)