1 回答

TA貢獻1777條經(jīng)驗 獲得超10個贊
好吧,我不知道為什么它不能像描述的那樣開箱即用,但我添加了一些 JavaScript,現(xiàn)在它可以工作了。我仍然希望了解為什么它不能按描述工作。
$.ajax({
url: 'Blog/Edit',
type: 'POST',
data: JSON.stringify(Blog),
contentType: 'application/json;charset=utf-8',
success: function (data) {
if (data.success == true) {
window.location.href = "../Blog";
}
else if (data.success == false) {
alert("Error occured..!!")
}
},
error: function () {
alert("Error occured..!!");
},
});
- 1 回答
- 0 關注
- 132 瀏覽
添加回答
舉報