微信小程序设置动态title

当前文件json中设置

{
    
    
  "usingComponents": {
    
    },
  "navigationBarTitleText": "创建署名证书"
}

需要页面title动态的变化,就要用到wx.setNavigationBarTitle

onLoad: function (options) {
    
    
    wx.setNavigationBarTitle({
    
    
      title: options.name
    })
  },

猜你喜欢

转载自blog.csdn.net/weixin_46210850/article/details/121136799
今日推荐