How do Taro-ui components pass values?

View layer:

<View className="list">
  {
    list.map((v, i) => (
      <AtCard
        note="Tips"
        extra=""
        title={v.title}
        thumb={v.image}
        key={v.id}
        data-id={v.id} // id
        onClick={this.gotoDetail}
      >
        {v.intro}
      </AtCard>
    ))
  }
</View>
The

event failed to get the passed id!

gotoDetail = (e) => {
    console.log(e)
    Taro.navigateTo({
      url: `/pages/detail/index?id=${e.currentTarget.dataset.id}` // id
    })
  }

console:

how do I get the id in the loop?

May.05,2022

onClick={this.gotoDetail.bind(this, v.id)}
gotoDetail = (id) => {
    Taro.navigateTo({
      url: `/pages/detail/index?id=${id}` // id
    })
  }
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b4fe-2c26b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b4fe-2c26b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?