当前位置:Gxlcms > JavaScript > jqueryAjax实现加载数据前动画效果的示例代码_jquery

jqueryAjax实现加载数据前动画效果的示例代码_jquery

时间:2021-07-01 10:21:17 帮助过:4人阅读

代码如下:

$(document).ready(function(){
$.ajax({
type:"get",
cache:false,
url:"ajaxpage.aspx?t=getcity",
dataType:"json",
beforeSend:function(){
$("#vvv").append('');
},
success:function(data){
$("#city").html(data.info);//添加下拉框的option
},
complete: function() {$("#vvv").remove();
}

})
})

人气教程排行