|
[App引擎]
avm ontouchstart ios无法获取data- 安卓可以
[复制链接]
<view class={"item " + (this.data.clickEle == item.id ? "hover--class" : "hoverover--class")} data-sid={item.id} ontouchstart="ontouchstart" ontouchend="ontouchend">
<text>151524</text>
</view>
e.currentTarget 安卓中有data-sid
{"id":"o41","type":"view","attributes":{"data-sid":"sc_5","class":"item hoverover--class","style":{}},"events":["touchstart","touchend"],"children":[{"id":"o42","type":"text","attributes":{"text":"151524","style":{}},"children":[{"id":"o43","type":"#text","attributes":{"style":{}}}]}]}
e.currentTarget ios没有
{"id":"o33","type":"view","attributes":{"class":"item hoverover--class","style":{}},"events":["touchstart","touchend"],"children":[{"id":"o34","type":"text","attributes":{"text":"151524","style":{}},"children":[{"id":"o35","type":"#text","attributes":{"style":{}}}]}]}
|
|