<view id="taptest" data-hi="alipay" ontap="tapname">
<view id="taptestinner" data-hi="alipayinner"> click me! view>
view>
page({
tapname(event) {
console.log(event);
},
});
{
"type": "tap",
"timestamp": 1550561469952,
"target": {
"id": "taptestinner",
"dataset": {
"hi": "alipay"
},
"targetdataset": {
"hi": "alipayinner"
}
},
"currenttarget": {
"id": "taptest",
"dataset": {
"hi": "alipay"
}
}
}