摘要: // 代码 const pointDoms = []; // 使用这个指令的所有DOM对象 Vue.directive('points', { inserted(el, binding) { pointDoms.push(el); // 存储使用这个指令的DOM el.addEventListene 阅读全文