摘要:
directives:{ drag:{ mounted: (el, binding) => { const dragDom = el; const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null); el.par 阅读全文
摘要:
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 阅读全文
摘要:
//动态加载 js function loadScript(url,callback) { const script = document.createElement('script'); script.type = 'text/javascript'; script.onload = functi 阅读全文
摘要:
内容来自 Vue中文社区 公众号 1、输入一个值,返回其数据类型** function type(para) { return Object.prototype.toString.call(para)} 2、数组去重 function unique1(arr) { return [...new Se 阅读全文
摘要:
内容来自 Vue中文社区 公众号 1、文字超出部分显示省略号 单行文本的溢出显示省略号(一定要有宽度) p{ width:200rpx; overflow: hidden; text-overflow:ellipsis; white-space: nowrap; } 多行文本溢出显示省略号 p { 阅读全文
摘要:
记录一下以防忘记 String.raw`https://xcx.langkings.com/uploadimg/100001\202105\25\202105251907131715.mp3`.replace(/\\/g, '/') 返回 https://xcx.langkings.com/uplo 阅读全文
摘要:
内网穿透我用的是 natapp,不要问为什么用这个,问就是随便选的,内网穿透工具有很多,可自行选择。 以下是我的例子 1.首先下载客户端 2.下载 config.ini 配置文件 3.将下载的文件 解压 我将下载的两个文件放在了同一个文件夹下 4.选择自己需要的隧道 5.获取隧道的 authtoke 阅读全文
摘要:
ceshi(){ this.ToWorld(); this.ToExcel(); }, base64(content){ return window.btoa(unescape(encodeURIComponent(content))); }, ToWorld(){ var worldContent 阅读全文
摘要:
1.图片地址转Base64 有回调 getBase64(url, callback) { let Img = new Image(), dataURL = ''; let imgExt = this.extname(url); Img.src = url +"?v=" + Math.random() 阅读全文
摘要:
<template> <div class="previewModal" id="previewModal"> <Modal v-model="show" :footer-hide="true" width="55%" :title="config.imgname?config.imgname:'查 阅读全文