ajax请求简单的demo

$.ajax({
        async:false,
        cache:false,
        type:"post",
        dataType:"json",
        url:url,
        success:function(data){
            
            alert(data.msg);
        },
      error:function(){
        alert("出错啦。。。");
    }
    });

猜你喜欢

转载自blog.csdn.net/seven_7small/article/details/51680173
今日推荐