// 注册一个全局自定义指令 `v-focus`
Vue.directive('focus', {
// 当被绑定的元素插入到 DOM 中时……
inserted: function (el) {
// 聚焦元素
el.focus()
}
})
Vue.set(outData,'count',4);
Vue.component('lxy-body',{
template:` div style="color:red;" 全局化注册的lxy-body标签 div `
})
app.$once('lxy',() => {})
app.$off('lxy')