jQuery.ajax({})求解

浏览:936 发布日期:2014/01/09 分类:求助交流
jQuery.ajax({
               url: '__URL__/login',
               type: 'POST',
               dataType: 'xml/html/script/json/jsonp',
               data: {username: 'username'},
               complete: function(xhr, textStatus) {
                 //called when complete
                 
               },
               success: function(data, textStatus, xhr) {
                 //called when successful
               },
               error: function(xhr, textStatus, errorThrown) {
                 //called when there is an error
               }
             });
 complete: function(xhr, textStatus) {
                 //called when complete
                 
               },
               success: function(data, textStatus, xhr) {
                 //called when successful
               },
               error: function(xhr, textStatus, errorThrown) {
                 //called when there is an error
               }
这三段要怎么写,求解释,
最佳答案
评论( 相关
后面还有条评论,点击查看>>