vue获取当前点击的元素并传值的实例 html:<span@click='zan(pl.id)':data-id='pl.id'></span>js:zan(e){vartarget=event.target;vardataid=e;//(pl. 获取当前点击元素