11×0 精读Vue官方文档 – CookBook – 添加实例 property

精读 Vue 官方文档系列 🎉 Why? 通过为 Vue 构造函数的原型对象 prototype 绑定属性或方法,来实现数据与功能的全局共享和复用。 对比 模块化代码复用 require/import