摘要: 1、自定义指令钩子函数 Vue.directive('my-directive', {bind: function () {// 做绑定的准备工作// 比如添加事件监听器,或是其他只需要执行一次的复杂操作},inserted: function (newValue, oldValue) {// 被绑 阅读全文
posted @ 2019-05-30 20:38 为乐而来 阅读(13627) 评论(1) 推荐(1) 编辑