<view data-action="father" bindtap="GetAction">
<image src="https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=1302131682,4226401052&fm=58&bpow=492&bpoh=408" mode="widthFix">
</image>
<text>文字</text>
</view>
使用第一種的方法e.target.dataset.action 會獲取當前點擊的元素的action,則獲取圖片上的action,圖片上沒有action便取的是undefined;
使用第二種的方法e.currentTarget.dataset.action 會獲取有事件的那個元素,即view,所以獲得“father”