How ajax can be implemented when it doesn t depend on Juery5

Updated on Game 2024-02-09
8 answers
  1. Anonymous users2024-02-05

    It is more complicated and has poor compatibility, so it is not recommended.

  2. Anonymous users2024-02-04

    If there are three tabs, their IDs are tab1, tab2, tab3The class is tab

    Now import jquery

  3. Anonymous users2024-02-03

    jQuery is a class library for JS, and JS itself cannot manipulate headers, because JS is only executed during the browser loading the page.

    The header needs to be executed on the server side.

    In the case of AJAX, it is possible to set the header

    ajax(,type: "get",beforesend: function(xhr), which sets the header

    success: function() is the setrequestheader function.

  4. Anonymous users2024-02-02

    success : function(msg) is something that is executed after the submission is successful and the information is returned, and the condition is written to $ajax to go up. If it's validated in the background, then it's okay to set up no action in the background.

  5. Anonymous users2024-02-01

    General AJAX commits prevent the browser cache from appending a timestamp to the URL of the request, for example: $.ajax(,async:false,cache :false,datatype : "json",success : function(json), hotelid are the submitted parameters.

    type : "post", can get can postdemo();

    function demo()

    async:false,cache :false,datatype : "json",success : function(json)})

  6. Anonymous users2024-01-31

    You can loop the ajax request through the timer, or directly for the endless loop, by getting the second of the current time, and request ajax when the second is a multiple of 10

  7. Anonymous users2024-01-30

    It is recommended to use method 2, which is to put a delay function settimeout every time it completes and continue to execute. Because of method 1, if the response takes more than 10 seconds, it will be requested again, which is equivalent to 2 requests.

  8. Anonymous users2024-01-29

    Use the second option, but you need to set the timeout event to avoid a request that doesn't succeed once and then never requests again.

Related questions
3 answers2024-02-09

Nowadays, there are many AJAX applications in web development. There are also a number of frameworks in this regard. Session expiration issues are encountered in applications. >>>More

5 answers2024-02-09

You can compare his pre-debut pixel size ** with his current ** to know if he has plastic surgery! I think he looked better before his debut, he was really good-looking!

19 answers2024-02-09

Because the composition of eggs is not soluble in water, no matter how hard you stir it, it is just turbidity. If you use alcohol, you can do it, because most of the organic matter is soluble in alcohol.

11 answers2024-02-09

There must be.,The text in the loading picture you look at yourself,There will be a new picture.,But I don't know how long.,It's estimated that it's mostly Christmas.,It's Christmas or it's Christmas.。

8 answers2024-02-09

First of all, you should be confident when talking to strangers, think about it, your girlfriend's college banquet, besides herself, aren't you the most important person at this table? So you are superior to others, so you should be more calm, secondly, her friends ask about you or you, you will be very cheerful to listen to them, to make them feel that in addition to your girlfriend, you are the second master, with this mentality, you will not be embarrassed.