In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The main content of this article is to explain "what is the difference between web front-end separation and front-end non-separation", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what is the difference between front and rear separation of web and non-separation of front and rear?"
In the application mode where the front and rear ends are not separated, the effect of the front-end page is controlled by the back-end, and the back-end renders the page or redirects, that is, the back-end needs to control the display of the front-end, and the coupling between the front-end and the back-end is high.
This application mode is more suitable for pure web applications, but when the backend connects with App, App may not need the backend to return a HTML web page, but only the data itself, so the interface that the backend originally returns web pages is not suitable for front-end App applications. In order to interface with App backend, we need to develop another set of interfaces.
The requested data interaction is shown in the following figure:
Front-end separation in the front-end separation application mode, the back-end only returns the data needed by the front-end, no longer renders the HTML page, and no longer controls the front-end effect. As for what the front-end users see and how the data requested from the back-end is loaded into the front-end, it is up to the front-end to decide. The web page has the processing method of the web page and App has the processing method of App, but no matter which front-end, the data required is basically the same. The back-end only needs to develop a set of logic to provide data to the outside world.
In the application mode of front-end separation, the coupling degree between front-end and back-end is relatively low. In the application mode in which the front and rear ends are separated, we usually call each view developed at the back end an interface, or API, and the front end adds, deletes, modifies and queries the data through the access interface.
The corresponding data interaction is shown below:
At this point, I believe you have a deeper understanding of "what is the difference between web front-end separation and front-end non-separation". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.