微信小程序 --- 页面渲染 page.wxml文件 <view>{{text}}</view> page.js 文件: //获取应用实例 const app = getApp() Page({ data: { text: "你好", }, })