赞
踩
var a=e.currentTarget.dataset.id
console.log(this.data.myArr[a]);
var name = this.data.myArr[a].name
var address = this.data.myArr[a].address
var phone = this.data.myArr[a].phone
console.log(name,address,phone)
myArr[] 为我设的数组
a为我设置的数组index索引
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。