先上效果图:
在上代码:1
2
3
4
5
6
7
8
9
10
11
12
13
14$.ajax({
type:"get",
url: Url,
dataType:"jsonp",
async: true,
// 此方法就是加载完成前的动画方法
beforeSend:function(XMLHttpRequest){
$(".app_infro_con").html("img src='./images/loading.gif'/");
},
success:function(res){
var infro = res.data.notice
$(".app_infro_con").html(infro);
}
})
嗯,ok ,人狠话不多。