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

2023年12月27日

摘要: // 获取完整的URL字符串 var url = window.location.href; // 获取URL字符串中的参数部分 var params = url.split('?')[1]; // 将参数部分按照&符号分割成数组 var paramsArray = params.split('&' 阅读全文
posted @ 2023-12-27 11:36 LeeToLee 阅读(197) 评论(0) 推荐(0)
 
摘要: 1.在public文件夹下,新建config/config.js文件 window["edmConfig"] = { loginConfig: { loginSource: "d d d", loginUrl: "a a a", service: "c c c" } } 2.在index.html中 阅读全文
posted @ 2023-12-27 11:33 LeeToLee 阅读(133) 评论(0) 推荐(0)

2023年11月28日

摘要: 引入外部文件时,想要只在当前组件使用,但是我们使用如下方式时,会在全局使用。因为在scoped起作用的时候,import还没有引入这个文件 <style scoped> @import "../../xx.css" </style> 使用以下方式即可 <style scoped src="../.. 阅读全文
posted @ 2023-11-28 10:17 LeeToLee 阅读(447) 评论(0) 推荐(0)

2023年11月17日

摘要: const Table0 = ref() const Table1 = ref() function syncScroll() { for (let i = 0; i < compareData.compareInfo.length; i++) { let firstTable = Table0.v 阅读全文
posted @ 2023-11-17 17:30 LeeToLee 阅读(914) 评论(0) 推荐(0)

2023年7月15日

摘要: 页面: document.oncontextmenu = function(e){return false}; 嵌套iframe:iframe中要对contentDocument禁用 // 先获取到iframe iframe.contentDocument.oncontextmenu = funct 阅读全文
posted @ 2023-07-15 10:26 LeeToLee 阅读(952) 评论(0) 推荐(0)

2023年6月21日

摘要: 1.安装Sortable.js npm install --save sortablejs 2.在当前vue中JS代码中引入 import Sortable from ‘sortablejs’ 3.在当前vue文件template el-table中指定row-key row-key="id" ro 阅读全文
posted @ 2023-06-21 16:00 LeeToLee 阅读(388) 评论(0) 推荐(0)

2023年6月14日

摘要: 在树形列表中 <el-table-column type="index" label="序号" width="55"> <template slot-scope="scope"> <!-- 父级 --> <div v-if="scope.row.hasOwnProperty('replaceType 阅读全文
posted @ 2023-06-14 15:24 LeeToLee 阅读(167) 评论(0) 推荐(0)
 
摘要: <el-select v-model="setup.groupId" placeholder="请选择分组" size="medium"> <el-option v-for="(op, index) in fromGroup" :key="index" :label="op.groupName" : 阅读全文
posted @ 2023-06-14 15:15 LeeToLee 阅读(991) 评论(0) 推荐(0)

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 阅读(305) 评论(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 阅读(279) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 24 下一页