摘要:
设置和获取自定义属性使用$options。 实例代码: new Vue({ customOption: 'foo', created: function () { console.log(this.$options.customOption) // => 'foo' } }) 阅读全文
posted @ 2020-03-23 22:34
孟繁贵
阅读(2474)
评论(0)
推荐(0)
摘要:
1、组件id vue组件id是唯一的,并且是递增的。 下面是vue框架源码: let uid = 0 export function initMixin (Vue: Class<Component>) { Vue.prototype._init = function (options?: Objec 阅读全文
posted @ 2020-03-23 22:32
孟繁贵
阅读(9730)
评论(0)
推荐(0)

浙公网安备 33010602011771号