摘要: 1 Vue.directive('showImg',{ 2 inserted(el){ 3 el.addEventListener('click',function(e){ 4 e.stopPropagation() 5 const imgSrc = el.getAttribute('src'); //获取当前的图... 阅读全文
posted @ 2018-05-25 14:10 carrot萝卜 阅读(597) 评论(0) 推荐(0) 编辑