Answers
$.ajax({
url: "http://wiki.shajiquan.com/gitit-bigger"
type: "post",
dataType: "json",
data: "hello world",
headers: {'Content-Type': 'application/json'},
success: function (res) {
if (res.status == 1) {
window.location.reload();
} else {
alert(res.message);
}
}
})
这里的
data
就会在 body 体中。
奈须炖蘑菇
answered 9 years, 6 months ago