- 博客(1)
- 收藏
- 关注
原创 [Vue warn]: Error in v-on handler: “TypeError: Cannot read properties of undefined (reading ‘target‘
用vue绑定事件时,不小心在事件getR后加了个() <button @click.once="getR()" >领取</button> 然后在getR中用event: getR(e){ const nowBgColor2=e.target.style.backgroundColor e.target.style.backgroundColor= "red" console.log("成功领取奖励!")
2021-12-14 21:44:27 6341
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人