current position:Home>Ajax foundation - HTTP foundation of interview essential knowledge
Ajax foundation - HTTP foundation of interview essential knowledge
2021-08-29 05:50:34 【Big M】
Dear friends , How do you do , I haven't updated the article for a long time , Today I'll introduce you to a technology , It's called ajax(Asynchronous Javascript And XML), It is a web development technology for creating interactive web applications .
Popular point theory , You don't have to refresh the page , Submit data to the server through the client , So as to update a part of the web page .(ps: Traditional web pages ( Don't use AJAX) If you need to update the content , You have to reload the entire page )
Look at the picture :
Now more and more companies support the separation of front and back-end development , So as a front-end Developer , It is no longer simply limited to making a cutaway , therefore , As a qualified front-end Engineer , Of course, we should master this technology .
Don't talk nonsense , Next, let's learn this technique of holding and holding .
Before learning , You may need to have a little server-side level , What I use here is php. Of course , If you don't understand php It doesn't matter , Only some very simple code is involved here , I won't learn from you ajax Understanding creates stress .
Study ajax Before , We need to know about http Some knowledge of . That's true. , Many beginners are unfamiliar with this knowledge point , But this is a necessary knowledge for many companies to interview . Now follow me , Be familiar with the following knowledge points , You can open about http The gate of knowledge .
First ,http It's the rule that computers communicate over the network , Is a stateless protocol ( It means that after the client sends the request , The server received it , The request was disconnected , Not saved )
The above is a complete http The process of requesting and responding , Next, let's take a look at these two parts .
Have a look first http Request part :
(ps: There are many ways to request , But the general use is get and post request )
Look at the examples , Here is one get request , At the top is the way of request , Address, etc , Then the red part is the request header information , Finally, the request body
Now let's see http The response part of :
Look at the examples :
(ps: This example has no response body )
Then let's look at http The status code of the response , It helps us debug the efficiency and accuracy of the program .
thus ,http There is only so much basic knowledge of , Isn't it rare .
Little knowledge , But keep this in mind , After all, people who will be called engineers in the future , Not too much low( since high in ...)
I just want to comb some beginners http Just the basics of , Want to know more about , You can read that 《 The illustration HTTP》, Easy to understand ( But I haven't finished reading it completely )
----------- A less gorgeous dividing line ----------
Last , I think about it recently , I think it is necessary to build a front-end communication group , You can discuss and exchange front-end technology in it , Share experiences, etc , Jointly improve our front-end development level .
This article is from WeChat official account. - javascript Instance analysis (jsexample) , author : Kobayashi
The source and reprint of the original text are detailed in the text , If there is any infringement , Please contact the [email protected] Delete .
Original publication time : 2016-11-08
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .
copyright notice
author[Big M],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2021/08/20210829055031895Q.html
The sidebar is recommended
- Crazy blessing! Tencent boss's "million JVM learning notes", real topic of Huawei Java interview 2020-2021
- JS JavaScript how to get the subscript of a value in the array
- One line of code teaches you how to advertise on Tanabata Valentine's Day - Animation 3D photo album (music + text) HTML + CSS + JavaScript
- BEM - a front-end CSS naming methodology
- Another ruthless character fell by 40000, which was "more beautiful" than Passat and maiteng, and didn't lose BMW
- CSS learning notes - Flex layout (Ruan Yifeng tutorial summary)
- Zheng Shuang's 30th birthday is deserted. Chen Jia has been sending blessings for ten years. Is it really just forgetting to make friends?
- Asynchronous solution async await
- Installing Vue devtool for chrome and Firefox
- Basic usage of JS object
guess what you like
-
1. JavaScript variable promotion mechanism
-
Front end Engineering - scaffold
-
Array de duplication problem solution - Nan recognition problem
-
New choice for app development: building mobile applications using Vue native
-
Vieira officially terminated his contract and left the team. The national security club sent blessings to him
-
Less than 200000 to buy a Ford RV? 2.0T gasoline / diesel power, horizontal bed / longitudinal bed layout can be selected
-
We are fearless in epidemic prevention and control -- pay tribute to the front-line workers of epidemic prevention!
-
Front end, netty framework tutorial
-
The wireless charging of SAIC Roewe rx5 plus is so easy to use!
-
Left hand IRR, right hand NPV, master the password of getting rich