Article From:https://www.cnblogs.com/chenchenhao/p/9969482.html
<img v-lazy="i.img_url" alt="" />
<script src='js/vue-lazyload.js'></script>
<script>
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'img/noData.png',
  loading: 'img/loding.gif'
})
</script>

 

Link of this Article: Simple and practical vue-lazyload

Leave a Reply

Your email address will not be published. Required fields are marked *