wxml里面 设置text变量
<view class="text-box" scroll-y="true" > <text>{{text}}</text> </view>
js文件里面 定义text变量 使用setData写入
data: {
}
})
soeasy 就这么简单