wx小程序小菜 点击事件

页面标
< view >{{ msg }} </ view >
< button bindtap= "clickMe">点击我 </ button >
js中

clickMe: function () {
this.setData({ msg: "Hello World" })
}

猜你喜欢

转载自blog.csdn.net/liu709127859/article/details/80998459
今日推荐