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

var sendData = {
    country_code: "country_code",
    phoneList: "fileString"
};
$.post("url", sendData, function (returndata) {
    alert(returndata.message);
}, 'json');
//参数1 country_code  参数2 phoneList
//预期服务器响应{code: 1, message: "修改成功!"}

//如果返回不是json
//$.post("url", sendData, function (returndata) {
//    alert(returndata);
//转载请保留http://www.luofenming.com/show.aspx?id=ART2020040600001
//});

评论