JQuery,Post发送多个参数并返回json

2022-01-01 更新
var sendData = {
    country_code: "country_code",
    phoneList: "fileString"
};
$.ajax({
    type: "POST",
    url: "../api/User/Login",
    contentType: "application/json; charset=utf-8",
    data: JSON.stringify(sendData),
    dataType: "json",
    success: function (message) {
        console.log(message);
        //    if (message.code == 1) {
        //        alert("请求已提交!我们会尽快与您取得联系");
        //    }
        //},
        //error: function (message) {
        //    $("#request-process-patent").html("提交数据失败!");
        //}
    }
});

//参数1 country_code  参数2 phoneList
//预期服务器响应{code: 1, message: "登入成功!"}


//转载请保留http://www.luofenming.com/show.aspx?id=ART2020040600001