上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
摘要: getNowTime(time) { const now = time const year = now.getFullYear() // 得到年份 let month = now.getMonth() + 1 // 得到月份 let date = now.getDate() // 得到日期 let 阅读全文
posted @ 2021-03-29 17:38 未几 阅读(67) 评论(0) 推荐(0)
摘要: cookie的domain属性 545龙哥哥 2018-07-31 00:57:44 49469 收藏 44分类专栏: 龙哥哥前端笔记 文章标签: Cookie 单点登录版权欢迎大家光临我的个人博客,详戳 https://545longgege.top/ 最近在改一个bug单时,有个问题涉及到了co 阅读全文
posted @ 2021-03-25 20:08 未几 阅读(108) 评论(0) 推荐(0)
摘要: HTML5 file对象和blob对象的互相转换 最近在做一个裁剪图片的需求,基于vue和elementui,裁剪完图片遇到一个坑,elementui的upload组件接受一个promise,要求promise resolve一个File对象才可以使用新文件上传,而canvas是转成了blob对象, 阅读全文
posted @ 2021-03-18 10:57 未几 阅读(2205) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>XMLHttpRequest上传文件</title> <script type="text/javascript"> /* 三个参数 file:一个是文件(类型是图片格式), w: 阅读全文
posted @ 2021-03-18 10:49 未几 阅读(241) 评论(0) 推荐(0)
摘要: vue+vue-router转场动画的实例代码 Vue+WebPack+HBuilder 项目记录 项目搭建完毕了,但是由于是单页应用嵌入HBuilder的时候无法利用它的转场动画,于是找到了vue的转场动画写法,使体验与APP靠近,在此记录; 1.首先我们要监听路由然后判断其是前进还是后退,来实现 阅读全文
posted @ 2021-03-17 19:46 未几 阅读(555) 评论(0) 推荐(0)
摘要: // 身份证验证 Vue.prototype.$checkIdCard = function(idCard){ let _this = this; let bbd = ''; // 出生日期 let sex = ''; // 性别 let canPass = true; idCard = idCar 阅读全文
posted @ 2021-03-16 16:11 未几 阅读(131) 评论(0) 推荐(0)
摘要: <template> <div> <el-form :model="baseInfo" ref="baseForm" :rules="baseFormRules" label-width="110px" class="departmentDetail-ruleForm"> <el-form-item 阅读全文
posted @ 2021-03-16 16:04 未几 阅读(1741) 评论(0) 推荐(0)
摘要: getCity () { const map = new BMap.Map('map'); const nowCity = new BMap.LocalCity(); nowCity.get(bdGetPosition); const _this = this; function bdGetPosi 阅读全文
posted @ 2021-03-15 09:51 未几 阅读(106) 评论(0) 推荐(0)
摘要: vue的axios下载excel时,获取不到Content-Disposition内容,提取文件名 function postDownload(downloadUrl, params, contentType, callback){ let headers = { 'Content-Type': c 阅读全文
posted @ 2021-03-12 15:27 未几 阅读(328) 评论(0) 推荐(0)
摘要: downLoadReport({ id:'9003' },{responseType:'blob'}).then((res) => { let data = res.data let url = window.URL.createObjectURL(new Blob([data])) let lin 阅读全文
posted @ 2021-03-09 16:36 未几 阅读(415) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页