js ajax请求

$.ajax({
    url: "",
    type: "post",
    async: false,// 默认为true:异步; false:同步
    data: {},
    dataType: "json",
    error: function() {},
    success: function(data) {}
});
原文地址:https://www.cnblogs.com/pumushan/p/4740008.html