06 2022 档案

摘要:mounted() { //点击任意位置关闭区域弹窗 document.addEventListener('click', (e) => { //获取弹窗对象 const userCon = document.getElementsByClassName('tanKuang')[0]; const 阅读全文
posted @ 2022-06-29 18:21 李云蹊 阅读(969) 评论(0) 推荐(0)
摘要:一、npm安装clipboard npm install clipboard --save 二、页面结构 <span id="copyTarget">{{targetCode}}</span> <span id="copyBtn" :data-clipboard-text="targetCode" 阅读全文
posted @ 2022-06-28 09:39 李云蹊 阅读(1683) 评论(0) 推荐(0)
摘要:涉及到系统集成的时候,前端我们经常会用到iframe嵌入,但是嵌入的时候经常有不适应的情况,太长或太宽、滚动条。。。 下面的方法可以做到使嵌入的iframe自适应宽度、高度, 1、嵌入iframe,加入onload事件 <iframe src="https://iview.github.io/doc 阅读全文
posted @ 2022-06-22 14:53 李云蹊 阅读(8145) 评论(0) 推荐(2)
摘要:demo准备:mysql5.7.20 express4.0 处理图片文件的中间件Multer 先搭建服务器并展示html页面 const express = require("express"); const app = express(); app.engine('html',require("h 阅读全文
posted @ 2022-06-20 14:03 李云蹊 阅读(203) 评论(0) 推荐(0)
摘要:goTop() { let top = document.documentElement.scrollTop || document.body.scrollTop // 实现滚动效果 const timeTop = setInterval(() => { document.body.scrollTo 阅读全文
posted @ 2022-06-07 17:36 李云蹊 阅读(22) 评论(0) 推荐(0)