jquery ajax

$.ajax({
                type: "post",
                url: '',
                async: false,//默认true,同步请设置false
                data: {},
         error:function(){
          
         },  success: function (data) {
} });

$.post("ajax/test.html", function(data) {
  
});

参数设置请参考:http://www.w3school.com.cn/jquery/ajax_ajax.asp
 

 

posted @ 2015-12-29 17:55  点点_滴滴  阅读(136)  评论(0编辑  收藏  举报