摘要: window.onload = function () { var divHeight = document.getElementById('chenqi').clientWidth//获取容器固定宽度 var scrollWidth = document.getElementById('chenq 阅读全文
posted @ 2021-09-13 17:19 吃鸡小能手 阅读(218) 评论(0) 推荐(0) 编辑
摘要: <div class="centerModal" v-if="yjpic&&yjpic!=''" ref='centerModal'> <a-modal :getContainer="()=>$refs.centerModal" :visible="sfpic" :confirm-loading=" 阅读全文
posted @ 2021-08-04 20:06 吃鸡小能手 阅读(858) 评论(0) 推荐(1) 编辑
摘要: 两端str.replace(/^\s+|\s+$/gm, ''); 1、表达式“/(^s*)/g”去掉左边空格 2、表达式“/(s*$)/g” 去掉右边空格 3、使用方法 replace(/(^s*)/g, ""); 阅读全文
posted @ 2021-08-04 17:37 吃鸡小能手 阅读(63) 评论(0) 推荐(0) 编辑
摘要: /** * @param {Function} fn 防抖函数 * @param {Number} delay 延迟时间 */ export function debounce(fn, delay) { var timer; return function () { var context = th 阅读全文
posted @ 2021-06-21 16:08 吃鸡小能手 阅读(22) 评论(0) 推荐(0) 编辑
摘要: import videojs from 'video.js' import video_zhCN from 'video.js/dist/lang/zh-CN.json' import 'video.js/dist/video-js.css'; import tools from "@/utils/ 阅读全文
posted @ 2021-06-03 16:08 吃鸡小能手 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 安装好 Settings Sync 拓展,ctrl(mac 是 command) + shift + p,输入 sync,点击 Sync: Download Settings,输入 access token 和 gist id,泡杯咖啡,等待同步完成。 github:ghp_ixKloDjaYckF 阅读全文
posted @ 2021-05-13 14:58 吃鸡小能手 阅读(56) 评论(1) 推荐(0) 编辑
摘要: var aafile = fileList[0];///原上传文件 var file = new File([aafile], "aa.mp4");//修改后的文件名称 阅读全文
posted @ 2021-04-29 16:46 吃鸡小能手 阅读(209) 评论(0) 推荐(0) 编辑
摘要: vue.config.js///文件 module.exports = { lintOnSave: false,////去掉eslint } 阅读全文
posted @ 2021-04-25 10:12 吃鸡小能手 阅读(190) 评论(0) 推荐(0) 编辑
摘要: const res = new Map(); let newArray = array.filter( (arr) => !res.has(arr.F_XMBH) && res.set(arr.F_XMBH, 1) ); console.log(newArray); 阅读全文
posted @ 2021-04-21 10:06 吃鸡小能手 阅读(18) 评论(1) 推荐(0) 编辑
摘要: const regex = new RegExp('<img', 'gi') res.details = details.replace(regex, `<img style="max-width: 100%; height: auto"`); 阅读全文
posted @ 2021-03-26 09:25 吃鸡小能手 阅读(384) 评论(0) 推荐(0) 编辑