WebSep 2, 2014 · In chrome I can get event.currentTarget.dataset which gives me the data from the element that started the event but I don’t think this works in all browsers. The only cross browser solution that I know of is to get the data by wrapping the currentTarget in another jQuery object like below.
uni-app 结合 colorUI 开发项目的整体基本流程 - 掘金
WebDefinition and Usage. The currentTarget property returns the element whose event listener triggered the event. The currentTarget property is read-only. The currentTarget … Web先说说背景,之前在微信开发了一个工具类的小程序,小程序的日访问量和用户数还可以,但发现随着用户量的累积,一方面发现对于这类工具小程序,受限于微信小程序平台规 … decatur county ohio court
微信小程序-colorUI组件库-自定义tabBar_colorui …
WebDefinition and Usage. The currentTarget property returns the element whose event listener triggered the event. The currentTarget property is read-only. The currentTarget property is useful during capturing and bubbling. The target property refers to the element whose event listener triggered the event, opposed to the target property, which ... WebSep 18, 2024 · To access custom attributes from an event object in React, we can use the e.currentTarget.dataset property. For instance, we write: import React from "react"; … WebJul 21, 2024 · use currentTarget instead of target controller: ( { ShowDataOnClick: function (component, event, helper) { var index = event.currentTarget.dataset.rowIndex; console.log (index); } }) Share Improve this answer Follow edited Jul 21, 2024 at 10:00 answered Jul 21, 2024 at 9:18 vignesh 2,684 10 20 feathers desktop backgrounds