Newcomers learn the framework of WeChat applet development

In the recent period of time, the mini programs and mini games in the WeChat group have suddenly exploded, and now it is undoubtedly the next trend to see mini programs as the heavyweight function of WeChat. Let's not talk about what we can do in this outlet. As a front-end technician or a newcomer, you should have some understanding of the applet and be able to develop some functions, and most companies now have this kind of business, which has become a must. prepared skills.

 

As for how to learn how to develop small programs?

Since the development of the applet, both the official tools and documents are very complete, and there are many demos on other websites for reference.

 

Developing small programs does not require too many front-end skills, because js is used to write functions, so js, ​​css, and layout must be learned. In addition, basic programming ideas, data interaction processing, and understanding of what is data-driven view update, From the overall framework level and life cycle process, you can understand what the applet contains, so that it will not be ambiguous. For specific details, you can read the official documentation, read the documentation and then write the demo, and you can quickly master the basic development. Knowledge, because the small program is really a bit of a fool-like development, and it is relatively simple to get started.

 

Here are some of the more important things:

1. I won't say how to apply for an account, how to test, and how to publish. If you don't understand, just apply for one by yourself.

2. Page layout, the layout uses the internally provided components for layout, and the tags of the web page cannot be used directly, but basic css selections and properties are supported, but it is recommended to use flex layout

3. Data binding, such as ordinary binding, list binding, conditional rendering, etc., similar to vue binding, two-way data binding

4. Event processing, event binding is similar to vue, and then write specific event processing methods in js code

5. Routing settings, routing is the simplest routing, just follow the documentation

6. Declaration cycle, including the page life cycle and the declaration cycle of the application, that is, the declaration cycle of the entire app. It is necessary to understand what triggers the relevant declaration cycle processing function.

7. The api capability provides many native capabilities and can do many things, such as obtaining basic user information, geographic location, scanning code, payment, video control, network status, Bluetooth, etc.

8. Understand the operating mechanism of the framework. This is more theoretical and the bottom layer. If you understand it better, it will be more beneficial for us to write code.

9. For performance optimization, I will publish this separately.

 

 

Generally speaking, the mini program is relatively simple. Now not only WeChat has mini programs, but there are already many products on Kuai App. This may be the future trend, at least it is developing wildly, so the development of mini programs is in There will be more and more later, one can imagine the importance of this.

 

Then I said, there is no way to answer questions and code demonstrations in the voice. If you are interested in this development, you can come and communicate together and add WeChat 

Well, there is another article I will talk about in detail about performance optimization, see you next time

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325644551&siteId=291194637