摘要: 安卓在线读取pdf不能直接打开,而ios可以; 是因为安卓的webView不支持导致的, 解决 引入pdf.js文件 在iframe <div class="outer"> <iframe class="show-box" :src="'http://uattest.tppension.cntaip 阅读全文
posted @ 2020-10-15 15:49 一只小菜鸟呀! 阅读(1139) 评论(0) 推荐(0) 编辑
摘要: const s=new Set(); [2,3,4,2,3,4,5,6,2,3,3].forEach(x=>s.add(x)) console.log(s); for(let i of s){ console.log(i) } console.log(s.add(9)); //add(value), 阅读全文
posted @ 2020-09-09 17:20 一只小菜鸟呀! 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 组件 popPicker.vue <template> <div> <mt-popup class="popPanel" position="bottom" v-model="currentVal" :closeOnClickModal="clickfalse" > <div class="pick 阅读全文
posted @ 2020-09-04 14:40 一只小菜鸟呀! 阅读(851) 评论(0) 推荐(0) 编辑
摘要: this.$router.push 1.跳转到指定URL,向history栈添加一个新的记录,点击后退会返回至上一个页面 2.声明式 <router-link :to="...."> 编程式 router.push(...)//该方法的参数可以是一个字符串路径,或者一个描述地址的对象。 this.$ 阅读全文
posted @ 2020-09-02 11:04 一只小菜鸟呀! 阅读(28511) 评论(0) 推荐(2) 编辑
摘要: 在进行窗口的resize、scroll,输入框内容校验等操作时,如果事件处理函数调用的频率无限制,会加重浏览器的负担,导致用户体验非常糟糕。 此时我们可以采用debounce(防抖)和throttle(节流)的方式来减少调用频率,同时又不影响实际效果。 函数防抖 函数防抖(debounce):当持续 阅读全文
posted @ 2020-08-18 16:03 一只小菜鸟呀! 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 序言 最近临时抽调到另一个项目小组,接手一个PC端支付平台(暂做银行卡支付,后期更新移动端的微信,支付宝支付)的需求。这个项目是刚刚搭建起来的,接手时前辈已离职,加上本人第一次接触支付全流程,还是比较困难的。天天加班的付出终于还是让排期顺利的进行,这会抽空来总结一下这段时间的所学,若有不足之处,恳请 阅读全文
posted @ 2020-08-14 11:14 一只小菜鸟呀! 阅读(636) 评论(0) 推荐(0) 编辑
摘要: alert:function(content,title="温馨提示",bottontext){ this.$alert(content,title,{ customClass:"conAlert", confirmButtomText:bottontext, confirmButtonClass: 阅读全文
posted @ 2020-07-30 14:10 一只小菜鸟呀! 阅读(167) 评论(0) 推荐(0) 编辑
摘要: //加载动画开始 loadingStart(){ this.loadingObj = this..$loading({ lock:true, text:"数据请求中....", spinner:“el-icon-loading”, nackground:'rbga(0,0,0,0.3' }) } / 阅读全文
posted @ 2020-07-30 14:06 一只小菜鸟呀! 阅读(187) 评论(0) 推荐(0) 编辑
摘要: getDate(startDate){ let newDate=new Date(startDate).getTime() - 1000*60*60*24 let date = new Date(newDate); let y= date.getFullYear() let m=(data.getM 阅读全文
posted @ 2020-07-30 13:53 一只小菜鸟呀! 阅读(2232) 评论(0) 推荐(0) 编辑
摘要: 在做vue项目是遇到一个需求 在业务申请页面,点击右侧任意菜单,页面弹框提示“若该笔业务超过24小时未提交,系统将自动作废!”,点击弹框的“确定”按钮,则离开本页面,否则,留在本页面 代码与methods平级: beforeRouteLeave(to,from,next){ if(to.path = 阅读全文
posted @ 2020-07-28 16:25 一只小菜鸟呀! 阅读(513) 评论(0) 推荐(0) 编辑