Page({  data: {},  onLoad: function (options) {    var that = this;    that.setData({      mername: options.mername//options为页面路由过程中传递的参数    })    wx.setNavigationBarTitle({      title: that.data.mername//页面标题为路由参数    })  },  onReady: function () {    // 页面渲染完成  },  onShow: function () {    // 页面显示  },  onHide: function () {    // 页面隐藏  },  onUnload: function () {    // 页面关闭  }})

主要是这个API:wx.setNavigationBarTitle

或者在json文件中加入

{  "navigationBarTitleText": "满减区"}

两种方式,一种动态修改、一种固定。

小程序文档:https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.setNavigationBarTitle.html

转载地址:https://blog.csdn.net/m0_37893932/article/details/70155310

TAG标签: 微信小程序微信账户更名

http://www.xiaochengxub.com/read-102800.html