This article mainly introduces the relevant information about the detailed introduction of the WeChat applet view layer (xx.xml) and logic layer (xx.js). Friends in need can refer to the concept of WeChat applet that can be understood as cloud OS. The WeChat ecosystem itself is an OS. In addition, the WeChat public platform and the WeChat development platform themselves are already very mature structures, which can perfectly match the functions of Apps. At the same time, they can also achieve the ultimate in interactive experience, and have the potential to replace Apps. The significance of the Apple App Store model is to provide third-party software providers with a convenient and efficient software sales platform. The fees paid by users to purchase apps are split 3:7 between Apple and app developers. If the WeChat mini program mall also adopts a similar commission model, the more than 800 million users will be a very large intangible asset and become another source of gold for Tencent after games, memberships, and advertising. WeChat mini programs allow people to use apps without downloading and installing them. Users can scan the QR code on WeChat to open the program. WeChat applet can be applied on different systems such as Android and iOS, and can also be shared on different platforms, because it itself is similar to a website page. Mini program view layer (xx.xml
1. Detailed explanation of the view layer (xx.xml) and logic layer (xx.js) in WeChat development
Introduction: This article mainly introduces the WeChat applet view layer (xx.xml) and logic layer (xx.js) in detail For related information, friends in need can refer to
##2. Introduction to WeChat Development (4) Touch Events
Introduction: What is an event? Events are a communication method from the view layer to the logic layer. Events can feed back user behavior to the logic layer for processing. When a trigger event is reached, the corresponding event processing function in the logic layer will be executed. The event object can carry additional information, such as id, dataset, touches.
#3.Layered Development Thoughts and Xiao Long Bao
##Introduction: When I was eating breakfast in the morning, I had a sudden inspiration. Let’s talk about layered applications based on eating xiaolongbao and daily development experience. First, let’s talk about what a three-tier architecture is. The so-called three-tier development is to divide the entire business application into a presentation layer-business logic layer-data access. Layer - database, etc., some are even more detailed, clearly dividing the client's presentation layer, business logic access, and data access and database access, which is very conducive to system development, maintenance, deployment and expansion. Software must be layered. , in fact, to summarize in one sentence, it is to achieve "high cohesion and low coupling" using the idea of "divide and conquer"
4.
Events in the Basics of Mini Program Development (9 )Introduction: As mentioned earlier, the WeChat applet framework is a design based on logic layer and UI layer analysis This design method needs to solve two problems. The UI layer responds to changes in the logic and data of the logic layer. The UI layer feeds back the user's operations to the logic layer. The data binding mentioned above solves the first problem, while the event solves the problem. The second question is what is an event? Events are a communication method from the view layer to the logic layer. Events can feed back the user's behavior to the logic layer for processing. When the event is triggered, it will be executed in the logic layer. The corresponding event processing function. The event object can carry additional information...
5.
Data Binding Basics of Mini Program Development Part 1 (7)Introduction: As written in the previous tutorial, the WeChat applet framework divides the program into a logic layer (.js file) and a view layer (.wxml file). This is a common programming method that separates UI and logic. The developed program is more flexible and easy to expand. This programming method usually solves two problems: The UI layer responds to changes in the logic and data of the logic layer. The UI layer feeds back the user's operations to the logic layer. Generally speaking, the UI layer and the logic layer can expose interfaces to each other, but there is a problem. For flexibility and scalability considerations, a middle layer will be introduced for management, which can avoid the UI layer... 6. WeChat applet development "micro "Weather" Tutorial (2)
## Introduction: Abstract: In the last issue, we introduced the API of "Micro Weather" With interface code writing, today we continue to introduce the writing of logic layer code and query code. This article is selected from "Learning WeChat Mini Program Development from Scratch". 7. Asp.net (1) Basic three-tier framework project: Web server, business server, database server
Introduction: Briefly describing the enterprise-level project, I never thought about the huge framework at the beginning, because the pressure at the beginning was not very high. Therefore, scalability has become a core requirement. Traditional three-tier architecture. Application layer, business logic layer, and data persistence layer. In view of the need to separate the server to reduce the pressure on the server, it is divided into a Web server, a business server, and a database server; and the reasonable and smooth data logic calls between the three, especially the front-end and back-end, are the key points that I need to record. Web front-end application service, requests the API interface, obtains data and renders the page. 1. Build an MVC framework and introduce public M... 8. Detailed explanation of http request encapsulation of WeChat applet
#Introduction: What do we pay more attention to in the code? 1. Request parameters, access interface 2. GET/POST... request method 3. Unified processing of request parameters (such as encryption, setting public parameters...) 4. Data returned successfully by the request (such as: decryption, extraction Logical layer data) 5. Request failure feedback 9. MySQL-data table partitioning technology PARTITION code example analysis
Introduction: This article mainly introduces a brief analysis of the Mysql data table partitioning technology PARTITION, and introduces the partitioning technologies RANGE, LIST, and HASH in Mysql respectively. , friends in need can refer to it. In this chapter, let’s learn about the partitioning technology (RANGE, LIST, HASH) in Mysql. Mysql’s partitioning technology is somewhat similar to horizontal table partitioning, but it is horizontal table partitioning at the logical layer. For applications It is still a table, in other words: the partition is not real 10. Code analysis of WeChat applet: 2. Logical layer
Introduction: Code Analysis Tutorial for WeChat Mini Programs: 2. Logic Layer, [Related Recommended Q&A]: #c# - Are exceptions caught at the presentation layer during project development? javascript - What is the difference between api and components? One is a method function on the logic layer, and the other is on the presentation layer? php - Regarding the return value, I just can’t get it... If you currently use the PHP framework, will you write the logic into the model?
The above is the detailed content of 10 recommended content about the logic layer. For more information, please follow other related articles on the PHP Chinese website!