It is better to read it for thousands of times. Let's make a simple HelloWorld together. It is better to read it for thousands of times. Let's make a simple HelloWorld together.
1. download and install the mini-program developer tool. download path:
Https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html
Select windows 64, windows 32, or mac based on your operating system type.
2. create a project
(1) add a project
Click "Add project" to create a project.
Click "edit" in the left-side navigation bar of the developer tool. we can see that this project has been initialized and contains some simple code. Including app. js, app. json, app. wxss, and pages and utils.
Among them, the most important are app. js, app. json, and app. wxss.
App. js: This file is the entrance file of the entire applet.
App. json: This file is the global configuration file of the applet. it determines the path, window performance, and network timeout.
App. wxss: a small program style file. you can think of it as CSS in html.
So far is the HelloWorld applet? Easy enough. In the next article, let's have a deep understanding of the code structure of the applet.
For more articles about HelloWorld mini-programs, please follow the PHP Chinese web!