Reptile Notes 1 - Server Rendering and Client Rendering

Reference: The difference between client-side rendering and server rendering-Knowledge

Server rendering:

The browser sends a request to the server, and the server directly integrates the data and html and returns it to the browser, that is, the data can be seen directly in the source code of the web page.

It is easy for crawlers to crawl data, and at the same time, it can be searched by search engines, and can display data to users in search engines.

Client rendering:

Send two requests, the first request only needs an html skeleton, and the data cannot be seen in the page source code, and the second request gets the data.

It is not easy to be crawled by crawlers, and it cannot be searched by search engines.

Distinguish: whether the data can be seen directly in the source code of the web page

Guess you like

Origin blog.csdn.net/daige123/article/details/125768205