美文网首页
小程序app.json编写

小程序app.json编写

作者: crayona | 来源:发表于2020-11-25 10:02 被阅读0次

目的:对小程序进行全局配置,

决定页面路径、窗口表现、网络超时时间、多tab等

hbuilder中的page.json与小程序中app.json中同理

{

  “page”:[

   ]//1.页面路径

  “window”:{} //2.全局的窗口表现形式

  “ tabbar”:{

          "list":[{}]

    }//3.tabbar

  “plugins”:{}//4.使用到的插件

  "networkTimeout":{}//5.网络超时时间

   “debug”:true,

    navigateToMiniProgramAppIdList:[''] //6.跳转小程序appid列表  

   “subPackages”:[{}]//7.分包配置(构建成不同的子包配置项)

   “preloadRule”  //8分包规则

}

1.页面路径

“page”:[{

"name":''//

"path":'/pages/index/index'//路径

“style”:{

  "navigatorBarTitleText":''//头部名字

   "navigationStyle":'custom' //设置后可自定义头部

 }

}]

相关文章

网友评论

      本文标题:小程序app.json编写

      本文链接:https://www.haomeiwen.com/subject/bkgkvktx.html