1 2 3 4 5 ··· 8 下一页
摘要: const pageSize = 10;let list = [{ id: 1 }]; const fillItems = Array.from({ length: pageSize - list.length }, () => ({ isEmptyData: true })); list = [. 阅读全文
posted @ 2025-08-18 11:18 Deer_Lin 阅读(6) 评论(0) 推荐(0)
摘要: // 1. 基本异步导入 const modules = import.meta.glob('../../../assets/map_icon/icon_map*.png'); function loadModules() { // 遍历所有匹配的模块 for (const path in modu 阅读全文
posted @ 2025-07-17 17:02 Deer_Lin 阅读(133) 评论(0) 推荐(0)
摘要: transform: rotateY(-16deg) scale(.9); 阅读全文
posted @ 2024-09-24 16:58 Deer_Lin 阅读(22) 评论(0) 推荐(0)
摘要: -webkit-filter: drop-shadow(0.5px 3.5px 0px rgba(7,22,42,0.48)); /*考虑浏览器兼容性:兼容 Chrome, Safari, Opera */ filter: drop-shadow(0.5px 3.5px 0px rgba(7,22, 阅读全文
posted @ 2024-08-16 17:35 Deer_Lin 阅读(35) 评论(0) 推荐(0)
摘要: js获取元素位置 JavaScript中获取元素位置的方法有以下几种实现方式: 使用getBoundingClientRect()方法: const element = document.getElementById('elementId'); const rect = element.getBou 阅读全文
posted @ 2024-04-15 14:52 Deer_Lin 阅读(2027) 评论(0) 推荐(0)
摘要: 手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段 1 const reg = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|( 阅读全文
posted @ 2024-03-11 14:00 Deer_Lin 阅读(135) 评论(0) 推荐(0)
摘要: //一行省略号代替: overflow: hidden; white-space: nowrap; text-overflow:ellipsis; //两行省略号代替 overflow:hidden; text-overflow:ellipsis; display:-webkit-box; //将对 阅读全文
posted @ 2024-01-15 11:20 Deer_Lin 阅读(36) 评论(0) 推荐(0)
摘要: 兼容nvue 1.只能使用text标签<text class="iconfont" style="color: #fff;font-size: 28rpx;">&#xe6ec;</text> 2.App.vue设置,引入iconfont onLaunch() { // #ifdef APP-PLUS 阅读全文
posted @ 2023-10-10 10:55 Deer_Lin 阅读(599) 评论(0) 推荐(0)
摘要: 1.版本 "dom-to-image": "^2.6.0", // or "html2canvas": "^1.4.1", 2.引入 import domtoimage from 'dom-to-image'; // or import html2canvas from 'html2canvas'; 阅读全文
posted @ 2023-08-30 09:46 Deer_Lin 阅读(1179) 评论(0) 推荐(0)
摘要: /** base64转换成blob数据 */ base64ToBlob(dataUrl, type) { var arr = dataUrl.split(','); var mime = arr[0].match(/:(.*?);/)[1] || type; // 去掉url的头,并转化为byte 阅读全文
posted @ 2023-08-30 09:37 Deer_Lin 阅读(330) 评论(0) 推荐(0)
1 2 3 4 5 ··· 8 下一页