上一页 1 2 3 4 5 6 7 ··· 23 下一页

2023年4月27日

摘要: // 下载npm包npm install watermark-package -S 使用 import watermark from "watermark-package"; // 添加水印 watermark.setWaterMark({ w_texts: [data.userName, data 阅读全文
posted @ 2023-04-27 10:28 LeeToLee 阅读(232) 评论(0) 推荐(0) 编辑
 
摘要: const arra = ['a', 'b', 'c', 'd', 'e']; const arrb = ['b', 'e']; console.log("some: " + arra.filter(v => !arrb.some((item) => item v))); console.log(" 阅读全文
posted @ 2023-04-27 09:41 LeeToLee 阅读(247) 评论(0) 推荐(0) 编辑

2023年3月28日

摘要: <el-tabs @tab-click="handleClick" v-model="activeTabName"> <el-tab-pane v-if="" label="用户管理" name="first" ref="first" >...</el-tab-pane> <el-tab-pane 阅读全文
posted @ 2023-03-28 10:32 LeeToLee 阅读(50) 评论(0) 推荐(0) 编辑

2023年3月22日

摘要: 1.下载依赖 npm i js-cookie -S 2.引入使用 import Cookies from 'js-cookie' // 创建一个在整个网站上有效的Cookie Cookies.set('name', 'value'); // 创建一个从现在起7天后过期的cookie,在整个站点上有效 阅读全文
posted @ 2023-03-22 10:22 LeeToLee 阅读(2864) 评论(0) 推荐(0) 编辑

2023年3月6日

摘要: params传递参数要在路由表中配置参数 参数不必传加个 ? 即可 path: '/process/design/:code?', 阅读全文
posted @ 2023-03-06 09:51 LeeToLee 阅读(11) 评论(0) 推荐(0) 编辑

2023年2月28日

摘要: // 创建组件 <template> <!-- 文档搜索列表展开/收起组件 实现了文档搜索列表页 文档超过5行会显示展开/收起的功能 --> <div class="mj-text-hide"> <input :id="`group-members_exp${index}`" class="grou 阅读全文
posted @ 2023-02-28 11:58 LeeToLee 阅读(764) 评论(0) 推荐(0) 编辑
 
摘要: // webSocket.js let Socket = '' let setIntervalWesocketPush = null let socketUrl = ""; /** * 建立websocket连接 * @param {string} url ws地址 */ export const 阅读全文
posted @ 2023-02-28 11:43 LeeToLee 阅读(172) 评论(0) 推荐(0) 编辑
 
摘要: replaceData(value) { if (value) { return value.replace(/<[^>]+>/g, '').replace(/ /ig, '').replace(/\s/g, '') } else { return '' } } 阅读全文
posted @ 2023-02-28 11:32 LeeToLee 阅读(21) 评论(0) 推荐(0) 编辑
 
摘要: 设置为'arraybuffer'后当响应是400或500时也会下载下来,因此转位JSON对象做判断 const result = await Promise.all(promise); if (result) { try { // 转换成功 let enc = new TextDecoder('ut 阅读全文
posted @ 2023-02-28 11:24 LeeToLee 阅读(293) 评论(0) 推荐(0) 编辑

2022年12月5日

摘要: el-table实现单选 阅读全文
posted @ 2022-12-05 16:45 LeeToLee 阅读(97) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 23 下一页