摘要: let url = 'xxx' axios .get(url, { responseType: 'blob', }) .then(res => { let reader = new FileReader() reader.readAsText(res, 'GBK') reader.onload = 阅读全文
posted @ 2024-06-05 09:38 yw3692582 阅读(6) 评论(0) 推荐(0) 编辑
摘要: <div id="app" style="display: flex; position: absolute; left: -6000px"></div> 在mounted中: let app_dom = document.getElementById("app"); app_dom.style.l 阅读全文
posted @ 2023-11-28 09:04 yw3692582 阅读(83) 评论(0) 推荐(0) 编辑
摘要: /deep/ .el-table td, /deep/ .el-table th { padding: 8px 0; } // 鼠标悬停背景色 .el-table tbody tr:hover > td { background-color: transparent; } 阅读全文
posted @ 2023-11-03 08:51 yw3692582 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1、安装 jmuxer npm install jmuxer@2.0.5 2、.vue文件中使用 <template> <div> <video id="dom_id" muted="muted" controls class="video_box"></video> <div v-if="!has 阅读全文
posted @ 2023-10-28 21:02 yw3692582 阅读(1743) 评论(0) 推荐(0) 编辑
摘要: 1、draw_shape.js 1 /** 2 * 绘制不规则多边形 3 */ 4 5 import { Message } from 'element-ui' 6 7 export function draw_test(cav, list) { 8 // 画布初始化 9 let ctx = cav 阅读全文
posted @ 2023-10-24 13:35 yw3692582 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 1、draw.js /** * 画布中绘制矩形 * 参数: cav-画布对象 list-矩形数组 i-选中矩形下标 **/ /* 操作执行方法分发 */ export function draw(cav, list, i) { // 画布初始化 let ctx = cav.getContext('2 阅读全文
posted @ 2023-10-16 14:16 yw3692582 阅读(348) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import store from '../store' function copyMethod(value) { let text = '' switch (typeof value) { case 'number': text = value.toSt 阅读全文
posted @ 2023-10-11 16:21 yw3692582 阅读(73) 评论(0) 推荐(0) 编辑
摘要: https://chenxuan0000.github.io/vue-seamless-scroll/zh/guide/#npm 阅读全文
posted @ 2023-09-26 09:53 yw3692582 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1、先看这个(必看):https://www.cnblogs.com/lyt520/p/16545806.html 2、安装移动端log(如不需要可跳过此步骤) npm install vconsole main.js中引入: import VConsole from 'vconsole' cons 阅读全文
posted @ 2023-09-22 15:04 yw3692582 阅读(887) 评论(0) 推荐(0) 编辑
摘要: location / { root html; index index.html index.htm; try_files $uri $uri/ /index.html; } location /mobile { # 多层目录时不能用root,要用alias alias html/mobile; i 阅读全文
posted @ 2023-09-19 15:36 yw3692582 阅读(137) 评论(0) 推荐(0) 编辑