vue2 click 获取当前元素属性值,获取当前元素父级属性值,当前对象的内容
tabChang: function(){
//当前对象的内容
console.log(event.currentTarget.innerHTML);
//获取当前元素属性值
console.log(event.target.getAttribute("flag"));
//获取当前元素父级属性
console.log(event.target.parentNode.getAttribute('class'));
}