设置和获取自定义属性使用$options。
实例代码:
new Vue({ customOption: 'foo', created: function () { console.log(this.$options.customOption) // => 'foo' } })