How to implement asynchronous request refresh by ajax
This article is about how ajax implements asynchronous request refresh. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
In the website refresh method, ajax refresh is a good user experience refresh way, in combination with ssh and other popular framework! The most commonly used! Here is a demo that often refreshes the form with an ajax.
$(document) .ready (function () {testchaxun (); setInterval ("testchaxun ()", 5000);}); function testchaxun () {/ * var selectId = $('# proviace') .val () * / $.ajax ({type: "POST", / * cache: false, * / url: "warningActionAction warningdefingdefQuery 1.action", dataType: "json", success: function (data) {$('tr'). Remove (' .datatr'); for (var iDeposit I