页面标
<
view
>{{ msg }}
</
view
>
<
button
bindtap=
"clickMe">点击我
</
button
>
js中
clickMe:
function () {
this.setData({ msg:
"Hello World" })
}