app.json Configuration Introduction

  

backgroundTextStyle only the value of "light" or "dark"

navigationBarTextStyle only the value of "black" or "white"

Write "Hello World"

1, created in the root directory app.json

{
  "pages": ["pages/index/index"]
}

2, the new pages directory in the root directory, then create a new directory in the index pages, create two files in the index directory, index.wxml and index.js

3, index.wxml content is:. <Text> Hello World </ text>

4, index.js the content Page ({})

Guess you like

Origin www.cnblogs.com/shanlu0000/p/12556146.html
Recommended