微信小程序之tabBar

在 json 文件中配置

代码

`"tabBar":{
"list":[
{
"pagePath":"pages/index/index",
"text":"index"
},
{
"pagePath":"pages/openapi/serverapi/serverapi",
"text":"serverapi"
},
{
"pagePath":"pages/scroll/scroll",
"text":"scroll"
}

]

}, `

  • pagePath 需要 预先 声明
  • tabbar只显示在存在于item里的页面中
posted @ 2020-05-20 14:05  insense  阅读(150)  评论(0)    收藏  举报