In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the working principle of the web page, which is introduced in the article in great detail and has certain reference value. Interested friends must read it!
Web pages are divided into static web pages and dynamic web pages, and their working principles are as follows:
1. Static web pages work as follows:
Request-download and parse at the same time, first load the style to show the web page structure, JS function needs to be driven by itself. (Some JS functions need to run with the page load, such as the data initially displayed in the chart, two methods:
1. There are automatic execution functions used in the chart source code: $(function(){go_();});
2. Use the body tag in the chart source code:
< body onLoad="go_();" >Specific steps:
A. The user enters the address to be accessed in the address bar of the browser and enters, triggering the browsing request.
B. The browser sends the request to the Web server.
C. The Web server accepts the request and determines whether it is an HTML file according to the suffix name of the requested file.
D. The Web server reads the correct HTML file from the specified location on the server's hard disk or memory and sends it to the requesting browser.
The user's browser parses the HTML code and displays it.
2. Dynamic web pages work as follows:
When the user requests a dynamic web page, the server has to do more work to send back the information requested by the user. The server generally works according to the following steps:
A. The server accepts the request.
B. The Web server reads dynamic web files from the specified location or memory of the server hard disk.
C. Execute the program code of the web page file, and convert the dynamic web page containing the program code into a standard static page (HTML).
D. The Web server sends the generated static page code to the requesting browser.
The above is how the website works. Thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.