05 2020 档案

摘要:1. 监听当前时间位置,并三秒输出一次时间位置 <video @timeupdate="timeupdate" :src="视频路径" controls="controls" poster="封面"></video> data() { return { mytime_02:true, } } //监 阅读全文
posted @ 2020-05-20 16:59 自律·给我自由 阅读(3431) 评论(0) 推荐(0) 编辑
摘要:// axios.js 放入如下 import Vue from 'vue'; import router from '../router/index.js' const myVue = new Vue(); const base_url = 'http://dushu.test01.qcw100. 阅读全文
posted @ 2020-05-19 18:05 自律·给我自由 阅读(390) 评论(0) 推荐(0) 编辑
摘要://文件:utils/util.js const formatTime = date => { const year = date.getFullYear() const month = date.getMonth() + 1 const day = date.getDate() const hou 阅读全文
posted @ 2020-05-19 18:03 自律·给我自由 阅读(1066) 评论(0) 推荐(0) 编辑
摘要:/**基本防抖案例:先清除,后setTimeout进行执行**/ document.querySelector("#send").addEventListener("click",function(e){ clearTimeout(window.mytime_01); window.mytime_0 阅读全文
posted @ 2020-05-18 16:35 自律·给我自由 阅读(162) 评论(0) 推荐(0) 编辑
摘要:html: <div class="box" style="margin-top:0;" @click="share('weixin')">微信分享</div> <div class="box" style="margin-top:0;" @click="share('qq')">QQ分享</div 阅读全文
posted @ 2020-05-15 14:44 自律·给我自由 阅读(1113) 评论(0) 推荐(1) 编辑
摘要:html: <div class="box" style="margin-top:0;" @click="getLogin('weixin')">微信登录</div> <div class="box" style="margin-top:0;" @click="getLogin('qq')">QQ登 阅读全文
posted @ 2020-05-14 14:01 自律·给我自由 阅读(1444) 评论(0) 推荐(0) 编辑
摘要:mounted() { window.addEventListener('scroll', this.handleScroll, true); // 监听(绑定)滚轮滚动事件 this.getBookList();//请求数据 }, destroyed() { window.removeEventL 阅读全文
posted @ 2020-05-12 14:25 自律·给我自由 阅读(735) 评论(0) 推荐(0) 编辑
摘要://优点:可以不依照顺序传参/* 不传参默认为空字符串,*/ function fun ({x='',y='',k='',j=''} = {}){ console.log(x,y,k,j) } fun({x:1,y:2}) 阅读全文
posted @ 2020-05-12 14:02 自律·给我自由 阅读(1305) 评论(0) 推荐(0) 编辑
摘要:有时候UI组件提供的默认的样式不能满足项目的需要,就需要我们对它的样式进行修改,但是发现加了scoped后修改的样式不起作用。 解决方法: 使用深度选择器,将scoped样式中的选择器“深入”,即影响子组件 <style scoped>.a >>> .b { /* ... */ }</style> 阅读全文
posted @ 2020-05-11 17:43 自律·给我自由 阅读(471) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示