# extAppid 的开发调试

为了方便第三方平台的开发者引入 extAppid 的开发调试工作,需要引入 ext.json 的概念。

ext.json 是一个配置文件,放置在小程序项目的根目录下。

以下是一个包含了所有配置选项的 ext.json

{
  "extEnable": true,
  "extAppid": "2313243432",
  "directCommit": false,
  "ext": {
    "name": "qq",
    "attr": {
      "host": "q.qq.com",
      "users": [
        "user_1",
        "user_2"
      ]
    }
  },
  "extPages": {
    "pages/logs/logs": {
      "navigationBarTitleText": "logs"
    }
  },
  "window":{
    "backgroundTextStyle":"light",
    "navigationBarBackgroundColor": "#fff",
    "navigationBarTitleText": "Demo",
    "navigationBarTextStyle":"black"
  },
  "tabBar": {
    "list": [{
      "pagePath": "pages/index/index",
      "text": "首页"
    }, {
      "pagePath": "pages/logs/logs",
      "text": "日志"
    }]
  },
  "networkTimeout": {
    "request": 10000,
    "downloadFile": 10000
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

ext.json中的配置字段分为两种