实现图片懒加载插件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)
  }
})()
原文地址:https://www.cnblogs.com/zhoudawei/p/13523445.html