About the actual use of the plugin vue-lazyload lazy loading

User experience optimization vue-lazyload

First install npm install vue-lazyload -g

Open main.js and introduce vue-lazyload
Insert picture description here
back to the picture of the component that you need to lazy load.

<img class="needsclick" v-lazy="item.imgurl" width="60" height="60" />
Published 6 original articles · won 11 · visited 164

Guess you like

Origin blog.csdn.net/m0_46269977/article/details/105568138