标签:遍历 model content 全局 cas func value 简写 标签
Vue.directive(‘my-directive‘, function(el, binding){
el.innerHTML = binding.value.toupperCase()
})
directives : {
‘my-directive‘ : {
bind (el, binding) {
el.innerHTML = binding.value.toupperCase()
}
}
}
v-my-directive=‘xxx‘
标签:遍历 model content 全局 cas func value 简写 标签
原文地址:https://www.cnblogs.com/piao-bo/p/13513342.html