Home  >  Article  >  Web Front-end  >  jquery Ajax sample code to implement animation effect before loading data_jquery

jquery Ajax sample code to implement animation effect before loading data_jquery

WBOY
WBOYOriginal
2016-05-16 17:01:071113browse

Copy code The code is as follows:

$(document).ready(function(){
$.ajax({
type: "get",
cache:false,
url: "ajaxpage.aspx?t=getcity",
dataType: "json",
beforeSend:function(){
                                                                                                                              🎜> success:function(data){
$("#city").html(data.info);//Add drop-down box option
},
complete: function() {$( "#vvv").remove();
}

})})



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn