e.target.dataset一会有数据一会又undefined
console.log(e)就能看到e对象中包含两个对象分别是currentTarget和target,而真正的数据包含在currentTarget
e.target.dataset一会有数据一会又undefined
console.log(e)就能看到e对象中包含两个对象分别是currentTarget和target,而真正的数据包含在currentTarget
本文标题:微信小程序e.target.dataset获取undefined
本文链接:https://www.haomeiwen.com/subject/qzabmftx.html
网友评论