![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端需求实现
又菜又爱玩的程序猿
这个作者很懒,什么都没留下…
展开
-
vue数据模板文件的下载三种方法
用vue2针对后台返回数据的不同提供的下载模板文件三种办法(针对Excel) 一、当后台返回的数据是文件时,以下代码可实现直接下载文件到本地 let ele = document.createElement(“a”); ele.style.display = “none”; let file = “/user/exportExcelData”;//下载文件的后台接口 ele.href =file; document.body.appendChild(ele); ele.click(); document.b原创 2021-08-21 23:28:44 · 3541 阅读 · 0 评论 -
面试被问到上下式三栏布局,你能写出几种方法?
三栏式布局,上下固定,中间自适应 方法一:定位布局法 <style> div{ position: absolute; width: 100%; } .top{ top: 0; background-color: red; height: 200px; } .center{ top: 200px; bottom: 20.原创 2021-10-11 16:44:39 · 184 阅读 · 0 评论 -
如何实现点击查看密码达到一 一对应
需求: on:{ mousedown:function(e){ let divs=document.getElementsByClassName(‘div1’); let arr = Array.from(divs); let index = arr.indexOf(e.target.previousSibling); divs[index].innerText=Encrypt.decryptDevicePass(row.password);//密码解密查看 }, mouseup:function(e){原创 2021-09-02 16:10:18 · 71 阅读 · 0 评论