1. 功能:用于增强Vue
    2. 本质:包含install方法的一个对象,install的第一个参数是Vue,第二个以后的参数是插件使用者传递的数据。
    3. 定义插件:

      1. 对象.install = function (Vue, options) {
      2. // 1. 添加全局过滤器
      3. Vue.filter(....)
      4. // 2. 添加全局指令
      5. Vue.directive(....)
      6. // 3. 配置全局混入(合)
      7. Vue.mixin(....)
      8. // 4. 添加实例方法
      9. Vue.prototype.$myMethod = function () {...}
      10. Vue.prototype.$myProperty = xxxx
      11. }

      4.使用插件:Vue.use()