微信小程序 wxml中用data-id向js传值2019-06-29其他32 字通过 WXML 的 data-id 属性传递数据,在点击事件中使用 currentTarget.dataset.id 获取对应值。