index.wxml
<!--index.wxml-->
<view class="container">
<!-- 用户 openid -->
<view class="userinfo">
<view>{{ msg }}</view>
<button bindtap="clickMe">点击我</button>
</view>
</view>
index.js
//index.js
const app = getApp()
Page({
clickMe: function () {
this.setData({ msg: "Hello World" })
},
})
点击后