全局设置 // app.json { "window": { "navigationBarTitleText": "全局设置Title" } } 单页面设置 // index.json { "navigationBarTitleText": "全局设置Title" } 动态渲染 // index.js onLoad(options) { let type = options.type wx.setNavigationBarTitle({ title: type==1 ? 'Title1' : 'Title2', }) }