【发布时间】:2015-06-03 08:08:33
【问题描述】:
如何在 MVC 中以 JSON 格式从服务器返回错误并在 jqGrid 中处理此错误? 在控制器中我使用这个
throw new Exception("message");
我在 jqGrid 中使用
loadError: Error
////
还有我的功能
function Error(xhr, st, err) {
console.log(xhr.responseMessage);
}
但是在 xhr.responseMessage 中有一个 html 代码,我只需要我的错误消息。
【问题讨论】:
标签: jquery json asp.net-mvc jqgrid