实现图片懒加载插件vue-lazyload-image

(function () {
  function install (Vue) {
    // 实现逻辑代码

  if (typeof exports === 'object') {
    module.exports = install
  } else if (typeof define === 'function' && define.amd) {
    define([], function () {
      return install
    })
  } else if (window.Vue) {
    Vue.use(install)
  }
})()

 

posted @ 2020-08-18 14:45  前端开发-周先生  阅读(256)  评论(0编辑  收藏  举报