微信小程序使用 e.target.dataset 的问题 实际上直接console.log(e)就能解决问题。e对象中包含两个对象分别是currentTarget和target,而真正的数据包含在currentTarget。这也就是为什么一会有数据一会又undefined的原因。