Jquery ajxa两种方式

( 一 ) ajax第一种方式

$.ajax({
                type : 'post',
                url : 'url',
                data : form,
                processData:false,
                contentType:false,
                success : function(data) {
                
                },
                error : function () {
                
                }
            })

( 二 ) ajax.post第二种方式


 $.post("/router",{data},function(data){
      alert(data);
  });

猜你喜欢

转载自blog.csdn.net/wyy7293/article/details/106273510
今日推荐