全局(mian.js)注册自定义指令: 例如: Vue.directive('has', (el, binding)=> {Vue.directive('has' 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交