上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
  2020年12月1日
摘要: <swiper auto direction="vertical" :interval=2000 class="text-scroll" :show-dots="false"> <swiper-item><p>义务爱了 完成传奇世界H5-王者归来任务 获得20金币</p></swiper-item> 阅读全文
posted @ 2020-12-01 17:17 仔仔爱学习 阅读(302) 评论(0) 推荐(0) 编辑
  2020年11月10日
摘要: 防抖 按钮频繁被点击,同一个接口在某个时间段内多次被访问,比如搜索。防抖的目的是,触发事件后,在固定时间之后调用事件。如果在设置时间以内,再次触发事件,就清除定时器,重新开始计时。直至固定时间内没有再次触发事件,才去执行设置的函数。 let timer = null Vue.prototype.de 阅读全文
posted @ 2020-11-10 17:34 仔仔爱学习 阅读(118) 评论(0) 推荐(0) 编辑
  2020年11月5日
摘要: downloadVideo(){ let link = "https://xx.mp4" let fileName = 'xx.mp4' var x = new XMLHttpRequest(); x.open("GET", link, true); x.responseType = 'blob'; 阅读全文
posted @ 2020-11-05 14:25 仔仔爱学习 阅读(1252) 评论(0) 推荐(0) 编辑
  2020年1月20日
摘要: window.addEventListener('scroll',throttle(handleScroll,100)); let throttle_func = null throttle(func,delay){ var context = this return function(){ var 阅读全文
posted @ 2020-01-20 15:53 仔仔爱学习 阅读(619) 评论(0) 推荐(0) 编辑
  2019年10月24日
摘要: 作者:Jaskey Lam链接:https://www.zhihu.com/question/20543196/answer/57757836来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 1.不知道自己高度和父容器高度的情况下, 利用绝对定位只需要以下三行: par 阅读全文
posted @ 2019-10-24 10:39 仔仔爱学习 阅读(636) 评论(0) 推荐(0) 编辑
  2019年9月2日
摘要: <div class="ex" id="ex">三行的高度,三行的高度,三行的高度,三行的高度,三行的高度,三行的高度,三行的高度</div> mounted: function (){ //页面中直接调用 this.getElementHeight('#ex') //组件中调用,我也不知道为什么要 阅读全文
posted @ 2019-09-02 15:50 仔仔爱学习 阅读(2580) 评论(0) 推荐(0) 编辑
  2019年8月9日
摘要: <div class="recom_view"> <div class="recom"> 1 </div> <div class="recom"> 2 </div> <div class="recom"> 3 </div> <div><style>.recom_view{ column-count: 阅读全文
posted @ 2019-08-09 10:01 仔仔爱学习 阅读(1558) 评论(0) 推荐(0) 编辑
  2019年6月27日
摘要: 在router-view 中加入 key 就好了,因为在路由页面存在页面缓存。<router-view :key="this.$route.path"></router-view> 阅读全文
posted @ 2019-06-27 11:43 仔仔爱学习 阅读(12526) 评论(0) 推荐(0) 编辑
  2019年6月10日
摘要: 用小程序提供的wx.miniProgram.getEnv可以获取环境参数 阅读全文
posted @ 2019-06-10 15:10 仔仔爱学习 阅读(5062) 评论(0) 推荐(0) 编辑
  2019年4月11日
该文被密码保护。 阅读全文
posted @ 2019-04-11 14:22 仔仔爱学习 阅读(22) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页