售前咨询:400-100-2938
设置微信小程序页面标题的方法:
方法1:修改page.json文件,代码:
{"navigationBarTitleText": "我的标题"}
"navigationBarTitleText": "我的标题"
}
方法2:使用JS修改,代码:
wx.setNavigationBarTitle({title: that.data.mername//页面标题为路由参数})
title: that.data.mername//页面标题为路由参数
})
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:微信小程序设置页面怎么进入