会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一只小菜鸟呀!
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
7
下一页
2020年10月15日
安卓在线读取pdf失败
摘要: 安卓在线读取pdf不能直接打开,而ios可以; 是因为安卓的webView不支持导致的, 解决 引入pdf.js文件 在iframe <div class="outer"> <iframe class="show-box" :src="'http://uattest.tppension.cntaip
阅读全文
posted @ 2020-10-15 15:49 一只小菜鸟呀!
阅读(1233)
评论(0)
推荐(0)
2020年9月9日
ES6之Set
摘要: 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 一只小菜鸟呀!
阅读(285)
评论(0)
推荐(0)
2020年9月4日
结合mint-ui 实现底部弹框选择
摘要: 组件 popPicker.vue <template> <div> <mt-popup class="popPanel" position="bottom" v-model="currentVal" :closeOnClickModal="clickfalse" > <div class="pick
阅读全文
posted @ 2020-09-04 14:40 一只小菜鸟呀!
阅读(900)
评论(0)
推荐(0)
2020年9月2日
vue 之this.$router.replace和this.$router.push的区别
摘要: this.$router.push 1.跳转到指定URL,向history栈添加一个新的记录,点击后退会返回至上一个页面 2.声明式 <router-link :to="...."> 编程式 router.push(...)//该方法的参数可以是一个字符串路径,或者一个描述地址的对象。 this.$
阅读全文
posted @ 2020-09-02 11:04 一只小菜鸟呀!
阅读(30109)
评论(0)
推荐(2)
2020年8月18日
js 的防抖与节流
摘要: 在进行窗口的resize、scroll,输入框内容校验等操作时,如果事件处理函数调用的频率无限制,会加重浏览器的负担,导致用户体验非常糟糕。 此时我们可以采用debounce(防抖)和throttle(节流)的方式来减少调用频率,同时又不影响实际效果。 函数防抖 函数防抖(debounce):当持续
阅读全文
posted @ 2020-08-18 16:03 一只小菜鸟呀!
阅读(223)
评论(0)
推荐(0)
2020年8月14日
Vue---图形二维码、rules校验规则、el-dialog展示图片
摘要: 序言 最近临时抽调到另一个项目小组,接手一个PC端支付平台(暂做银行卡支付,后期更新移动端的微信,支付宝支付)的需求。这个项目是刚刚搭建起来的,接手时前辈已离职,加上本人第一次接触支付全流程,还是比较困难的。天天加班的付出终于还是让排期顺利的进行,这会抽空来总结一下这段时间的所学,若有不足之处,恳请
阅读全文
posted @ 2020-08-14 11:14 一只小菜鸟呀!
阅读(680)
评论(0)
推荐(0)
2020年7月30日
vue ----弹框
摘要: alert:function(content,title="温馨提示",bottontext){ this.$alert(content,title,{ customClass:"conAlert", confirmButtomText:bottontext, confirmButtonClass:
阅读全文
posted @ 2020-07-30 14:10 一只小菜鸟呀!
阅读(172)
评论(0)
推荐(0)
vue的背景加载--旋转*号
摘要: //加载动画开始 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 一只小菜鸟呀!
阅读(199)
评论(0)
推荐(0)
利用ES6新特性将时间戳转换为yyyy-mm-dd格式
摘要: 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 一只小菜鸟呀!
阅读(2377)
评论(0)
推荐(0)
2020年7月28日
路由守卫之离开守卫
摘要: 在做vue项目是遇到一个需求 在业务申请页面,点击右侧任意菜单,页面弹框提示“若该笔业务超过24小时未提交,系统将自动作废!”,点击弹框的“确定”按钮,则离开本页面,否则,留在本页面 代码与methods平级: beforeRouteLeave(to,from,next){ if(to.path =
阅读全文
posted @ 2020-07-28 16:25 一只小菜鸟呀!
阅读(520)
评论(0)
推荐(0)
1
2
3
4
5
···
7
下一页
公告