小程序点击事件改变样式(普通js鼠标点击事件) 1.wxml中
推荐热门分类 2.js中 data{ num:1 } bindChoice:function(e){ console.log(e); this.setData({ num:e.target.dataset.num }) }小程序点击事件改变样式(普通js鼠标点击事件)
最新推荐文章于 2023-01-08 21:29:48 发布
小程序点击事件改变样式(普通js鼠标点击事件) 1.wxml中
推荐热门分类 2.js中 data{ num:1 } bindChoice:function(e){ console.log(e); this.setData({ num:e.target.dataset.num }) }