app.json" file to globally configure the WeChat mini program. They can also determine the path of the page file, window performance, and set network settings. Timeout, set tabs, etc."/> app.json" file to globally configure the WeChat mini program. They can also determine the path of the page file, window performance, and set network settings. Timeout, set tabs, etc.">
search

What is app.json

May 18, 2019 pm 01:16 PM

"app.json" is the global variable of the current mini program. The user uses the "app.json" file to globally configure the WeChat mini program and can also determine the path and window of the page file. Performance, set network timeout, set tabs, etc.

What is app.json

##We use the app.json file to globally configure the WeChat applet. You can determine the path of the page file, window performance, set the network timeout, set tabs, etc.

The configuration properties of the app.json file are:

1.pages, the data type is Array, and the function is to set the path of the page. This property must have

2.window: Data type: Object. Function: Set the window performance of the default page. This property is optional.

The window can set the following 5 properties: navigationBarBackgroundColor navigationBarTextStyle navigationBarTitleText backgroundColor backgroundTextStyle

3.tabBar: Data type: Object. Function: Setting the bottom tab shows that this property is optional

The properties that can be set by tabBar include color selectedColor backgroundColor borderStyle list

4. networkTimeout: Data type: Object Function: Set the network timeout. This attribute is optional

The properties that networkTImeout can set are request connectedSocket uploadFile downloadFile

5.debug: Data type: Boolean. Function: Set whether the debug function is turned on. This attribute is optional.

The following json file contains the above 5 attributes:

{
“pages”:[

"pages/index/index",

"pages/logs/logs/index"],

"window":{
},
"tabBar":{

"list":[

{
"pagePath":"pages/index/index",

"text":"首页"
},

{
"pagePath":"pages/logs/logs",
"text":日志
}]
},

"networkTimeout":{
"request":10000,
"downloadFile":10000
},
"debug":true
}

The above is the detailed content of What is app.json. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!