JQ原生 Ajax请求

现在的前端请求。真的是百花齐放,但是老古董ajax 还是挺好用的,主要是简单的

$.ajax({
                    type: "Post",
                    url: "",
                    data: {
                        xxxx: data.xxx
                    },
                    dataType: "json",
                    success: function (data) {
                        if (data.Status) {} else {}
                    },
                    error: function (jqXHR) {
                        alert("发生错误:" + jqXHR.status);
                    }
                });

posted @ 2021-05-03 15:41  LuoCore  阅读(59)  评论(0编辑  收藏  举报