想要监听的事件
您可以通过传递数组来配置想要使用vue - lazyload的事件
监听器的名字。
Vue.use(VueLazyload, {
preLoad: 1.3,
error: 'dist/error.png',
loading: 'dist/loading.gif',
attempt: 1,
// the default is ['scroll', 'wheel', 'mousewheel', 'resize', 'animationend', 'transitionend']
listenEvents: [ 'scroll' ]
})
如果您遇到这个插件重新设置加载的麻烦,这是很有用的
当你有某些动画和过渡的时候。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持黑区网络。
