$.ajax

$.ajax({
     type: "GET",
     url: url,
     dataType: "json", 
     async: false,
     success: function(json, textStatus){

     //doing

     },
     error: function (xhr, err) {            
      alert("readyState: " + xhr.readyState + "\nstatus: " + xhr.status);            
      alert("responseText: " + xhr.responseText);        
    }
}); 

 

posted @ 2015-07-29 11:22  坠落鱼  阅读(132)  评论(0编辑  收藏  举报