How does AJAX work?

前端 未结 8 1846
北海茫月
北海茫月 2020-11-22 10:38

What is the essence of AJAX? For example, I want to have a link on my page such that when a user clicks this link, some information is sent to my server without the reloadin

8条回答
  •  隐瞒了意图╮
    2020-11-22 11:18

    Ajax is more than reload just a part of the page. Ajax stands for Asynchronous Javascript And Xml.

    The only part of Ajax that you need is the XMLHttpRequest object from javascript. You have to use it to load and reload small part of your html as a div or any other tags.

    Read that example and you will be pro sooner as you think!

    
    
    
    
    
    
    Name: Time:

提交回复
热议问题