zoukankan      html  css  js  c++  java
  • app.json

    APP.JSON 文件来对微信小程序进行全局配置,决定页面文件的路径、窗口表现、设置网络超时时间、设置多 TAB 等。相当于iOS开发中的AppDelegate
    注意该文件不可添加任何注释。
    {
      "pages”:[       //页面文件的路径
        "pages/component/index"
       "pages/API/index",
      ],
      "window":{
        "backgroundTextStyle":"light",
        "navigationBarBackgroundColor": "#fff",
        "navigationBarTitleText": "my微信引用”,   //navigation的title
        "navigationBarTextStyle":”black" 
      },
      "tabBar": {   //设置 TAB
        "color": "#333333",
        "selectedColor": "#3cc51f",
        "borderStyle": "black",
        "backgroundColor": "#ffffff",
        "list": [{
          "pagePath": "pages/component/index",
          "text": "组件",
          "iconPath": "images/icon_component.png",
          "selectedIconPath": "images/icon_component_HL.png"
        },{
          "pagePath": "pages/API/index",
          "text": "接口",
          "iconPath":"images/icon_API.png",
          "selectedIconPath":"images/icon_API_HL.png"
        }]
      },
      "networkTimeout": {    //设置网络超时时间
        "request": 20000,
        "connectSocket": 20000,
        "uploadFile": 20000,
        "downloadFile": 20000
      }
    }
     
  • 相关阅读:
    再见了,正则表达式
    深入理解 Python 描述符
    并发-ScheduledThreadPoolExecutor
    ScheduledExecutorService用法
    常见限流算法总结
    常见集合类的复杂度
    并发-ConcurrentHashMap 1.7和1.8的区别
    并发-HashMap在jdk1.8也会出现死循环
    并发-Hashmap 1.7和1.8有哪些区别
    并发-HashMap与红黑树-todo
  • 原文地址:https://www.cnblogs.com/tian-sun/p/7405571.html
Copyright © 2011-2022 走看看