wx.setNavigationBarTitle(), IOS无效,请问怎么解决
app.json里设置tabBar:
“tabBar”:{
“color”:"#7f8389",
“selectedColor”: “#19bf17”,
“backgroundColor”:“f7f7fa”,
“borderStyle”:"#bfbfc3",
“list”:[{
“text”:“精彩视频”,
“pagePath”:“pages/index/index”,
“selectedIconPath”:“images/icon-video2.png”,
“iconPath”:“images/icon-video1.png”
},{
“text”:“我要报名”,
“pagePath”:“pages/form/form”,
“selectedIconPath”: “images/icon-form2.png”,
“iconPath”: “images/icon-form1.png”
}]
}
pages/form/form页面onload的时候:
wx.setNavigationBarTitle({
title: ‘我的才艺视频’,
success: function (res) {
console.log(“setNavigationBarTitle success”, res)
},
fail: function (res) {
console.log(‘setNavigationBarTitle fail’, res);
}
})
在安卓手机上 页面title变成了“我的才艺***”,但是在IOS手机上title没有改变还是原来的