有个关于tabbar的问题
来源:2-14 加入tabbar选项卡
Jyuloeng
2019-08-11 14:08:55
"tabBar": {
"list": [
{
"pagePath": "pages/posts/posts",
"text": "阅读"
},
{
"pagePath": "pages/posts/posts",
"text": "demo"
}
]
},我在app.json里面配置了tabbar,那是怎么判断这个tabbar会出现在哪个页面的呢,为什么welcome这个页面和posts-detail这个页面没有tabbar呢请问
1回答
同学你好, tabbar只在list数组中配置的pagesPath中对应的页面出现哦。
示例:如果在app.json中配置一个pagesPath路径为welcome,那么在首页就会出现tabbar哦

如果帮助到了你,欢迎采纳!
祝学习愉快~~~~
相似问题