摘要: directives:{ drag:{ mounted: (el, binding) => { const dragDom = el; const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null); el.par 阅读全文
posted @ 2023-07-12 11:58 一条丶小咸鱼 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1.创建 ripple.js 复制以下代码即可 !function (t, e) { "use strict"; if (void 0 n || !n) var n = function (t) { var e = { opacity: .5, speed: .6, bgColor: "#fffff 阅读全文
posted @ 2023-06-09 15:05 一条丶小咸鱼 阅读(29) 评论(0) 推荐(0) 编辑
摘要: //动态加载 js function loadScript(url,callback) { const script = document.createElement('script'); script.type = 'text/javascript'; script.onload = functi 阅读全文
posted @ 2022-05-26 10:22 一条丶小咸鱼 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 内容来自 Vue中文社区 公众号 1、输入一个值,返回其数据类型** function type(para) { return Object.prototype.toString.call(para)} 2、数组去重 function unique1(arr) { return [...new Se 阅读全文
posted @ 2021-07-19 08:59 一条丶小咸鱼 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 内容来自 Vue中文社区 公众号 1、文字超出部分显示省略号 单行文本的溢出显示省略号(一定要有宽度) p{ width:200rpx; overflow: hidden; text-overflow:ellipsis; white-space: nowrap; } 多行文本溢出显示省略号 p { 阅读全文
posted @ 2021-07-19 08:54 一条丶小咸鱼 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 记录一下以防忘记 String.raw`https://xcx.langkings.com/uploadimg/100001\202105\25\202105251907131715.mp3`.replace(/\\/g, '/') 返回 https://xcx.langkings.com/uplo 阅读全文
posted @ 2021-05-27 11:05 一条丶小咸鱼 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 内网穿透我用的是 natapp,不要问为什么用这个,问就是随便选的,内网穿透工具有很多,可自行选择。 以下是我的例子 1.首先下载客户端 2.下载 config.ini 配置文件 3.将下载的文件 解压 我将下载的两个文件放在了同一个文件夹下 4.选择自己需要的隧道 5.获取隧道的 authtoke 阅读全文
posted @ 2021-05-07 10:59 一条丶小咸鱼 阅读(1584) 评论(0) 推荐(0) 编辑
摘要: ceshi(){ this.ToWorld(); this.ToExcel(); }, base64(content){ return window.btoa(unescape(encodeURIComponent(content))); }, ToWorld(){ var worldContent 阅读全文
posted @ 2020-12-29 15:29 一条丶小咸鱼 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1.图片地址转Base64 有回调 getBase64(url, callback) { let Img = new Image(), dataURL = ''; let imgExt = this.extname(url); Img.src = url +"?v=" + Math.random() 阅读全文
posted @ 2020-12-29 10:53 一条丶小咸鱼 阅读(8308) 评论(3) 推荐(1) 编辑
摘要: <template> <div class="previewModal" id="previewModal"> <Modal v-model="show" :footer-hide="true" width="55%" :title="config.imgname?config.imgname:'查 阅读全文
posted @ 2020-12-18 17:52 一条丶小咸鱼 阅读(4064) 评论(2) 推荐(0) 编辑