微信小程序连接无法跳转/ can not navigate to tabBar page错误

这里的说的跳转方式是通过js跳转如下:

wxml页面:

<button bindtap="enternews" >进入新闻news页面</button>

js页面:

enternews:function(){
wx.navigateTo({
url: \'../products/products\',//跳转地址
success: function(res){
console.log(res)// success
},
fail: function() {
console.log(\'跳转到news页面失败\') // fail 
},
complete: function() {
console.log(\'跳转到news页面完成\') // complete
}
})
}

  如果在这种情况下无法实现跳转并出现can not navigate to tabBar page错误很有可能是由于在底部tabbar里面定义乐同样连接地址的bar,如果在底部footer页面定义了相同地址的bar,则此页面无法跳转,

最好是当tabbar定义了相同的跳转地址在页面中不要再定义相同的链接了