In normal H5 development, we can no longer meet our needs. With the popularity of small programs, more and more project development is inseparable from the use of small programs. At present, WeChat small programs are commonly used. We have finished learning WeChat small programs. The development of other small programs after the program is basically the same, and it also lays a certain foundation for the subsequent uniapp development.
1. Preparation before development
First of all, we must have a personal account of a WeChat developer before we develop a WeChat applet. We have to register it.
WeChat applet registration official website : https://mp.weixin.qq.com/wxopen/waregister?action=step1&source=mpregister&token=&lang=zh_CN
Everyone fills in the corresponding information and completes the registration, then our first step is completed
Then let's log in to our WeChat applet background with the account we just registered
Log in to the background, we need to find the appID, find it as shown in the figure below
At this time, the development preparations we need have been prepared. appId is very important and must be used in development.
Second, the choice of development tools
When we have development preparation requirements, now we have to start the development of the project stage, here we have to use tools for development. The WeChat applet is different from the previous H5. It has its own development tools. If you still use vscode, it will be more troublesome to develop
WeChat developer tools download official website: https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
You can download the stable version, there will be no bugs, download according to your computer version
This is what it looks like after downloading
Fill in the above appId when you register and go up to complete
It is the same as everyone developing H5, with preview and code area
For more development, please refer to the Mini Program Development Document: https://developers.weixin.qq.com/miniprogram/dev/framework/