小程序:自定义属性data-* ,获取id

笔记:

页面中先以data-名字=“{{index}}” 写好,并绑定事件

在事件函数里面获取

猜你喜欢

转载自www.cnblogs.com/feng-xl/p/9318096.html
今日推荐