摘要:
npm install vue-infinite-scroll --save import infiniteScroll from 'vue-infinite-scroll' Vue.use(infiniteScroll) <div class="hello"> <div> <div class=" 阅读全文
posted @ 2018-12-21 20:32
不服憋着
阅读(171)
评论(0)
推荐(0)
摘要:
1; npm i vue-lazyload 2: 在main.js里 import vuelazyload from 'vue-lazyload'; Vue.use(vuelazyload,{ loading: '/static/1.jpg' // 图片没加载出来之前显示的图片 }) 3: <img 阅读全文
posted @ 2018-12-21 16:32
不服憋着
阅读(2560)
评论(0)
推荐(0)
摘要:
<html> <title>js图片未加载完显示loading效果</title> <body> <style> img{float:left;width:200px;height:200px;margin:0 10px 10px 0} </style> <script> //判断浏览器 var B 阅读全文
posted @ 2018-12-21 16:29
不服憋着
阅读(499)
评论(0)
推荐(0)
浙公网安备 33010602011771号