Vue.directive(‘auth‘, {bind:function (el, binding, vnode) { //el是对应的dom,binding中包含你传过来的参数 if(binding.value)el.parentNode.removeChild(el); }} );
2023-11-03 16:45:40
Vue.directive(‘auth‘, {bind:function (el, binding, vnode) { //el是对应的dom,binding中包含你传过来的参数 if(binding.value)el.parentNode.removeChild(el); }} );
下一篇:记一次上线排错的过程