1 回答

TA贡献1777条经验 获得超10个赞
好吧,我不知道为什么它不能像描述的那样开箱即用,但我添加了一些 JavaScript,现在它可以工作了。我仍然希望了解为什么它不能按描述工作。
$.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 关注
- 135 浏览
添加回答
举报