background

As a program apes need to constantly enrich himself, not only to the depth of the pursuit of knowledge, also want to pursue the breadth of knowledge, I have been practicing in this way, the main learning will let me become focused, I like this feeling very much, learning WeChat small program development is also interested in, hoping to take WeChat small procedures do small tools. Wechat platform provides a lot of capabilities and has been optimized. Compared with traditional mobile development, it needs to be compatible with Android and iOS platforms, which has a long development cycle and is difficult to maintain. A set of code of wechat small program can run on both platforms, and the development efficiency of wechat small program is high and the cycle is short. Many applications will first test new businesses and functions on wechat mini program, and then regeneralize to pursue better performance after maturity. No more words, or let us open the micro channel small program learning road.

start

As a first step in developing your applet, you need to have an applet account from which you can manage your applet. You can register your own wechat mini program through the mini program registration page.

In addition, the wechat team also provides a management platform to manage small programs. In this small program management platform, you can manage the rights of your small programs, view data reports, release small programs and other operations. The AppID of an applet is like an ID card for the applet platform, and you’ll need the AppID in a lot of places later on (note that it’s different from the AppID of a service number or subscription number).

To do good work must first sharpen its tools, wechat team provides the development tools of wechat small program open small program developer tools, with wechat scan code login developer tools, you can prepare to develop small programs.

Hello World

Create a new project select the applets project, select the hard disk path where the code is stored, fill in the AppID of the applets you just applied for, give your project a nice name, check “do not use cloud services” (note: You need to select an empty directory to create the project), click New, select the JavaScript template, and you have the first applet. Click the top menu to compile and preview your first mini program in wechat developer tools.

Click the top menu to compile and preview your first mini program in wechat developer tools.

Click the compile button on the tool to see the performance of this small program in the simulator interface on the left side of the tool. You can also click the preview button to experience your first small program on the phone by scanning wechat. Real machine debugging can be on the phone to debug the program, at the same time will also start a debugging panel display page real-time information, can be very convenient troubleshooting page problems.

At the same time, the real machine debugging will also start a debugging panel to display real-time information of the page, you can easily troubleshoot page problems.

The last

If you are interested or have any questions, you can follow the wechat public account QStack and share some articles and learning resources from time to time.