【发布时间】:2011-10-18 07:44:34
【问题描述】:
我有一些 MVC 代码:
throw new HttpException(403, "my error text", new Exception("Show me this message"));
在 javascript 中我有一个函数:
changeTextFormat = function (data) {
alert(data.responseText);
alert(data.status);
}
responseText 中有很多信息,但我想要访问的是 "my error text" 或 "Show me this message"。
谁能告诉我如何从responseText 中得到这个。
【问题讨论】:
标签: javascript jquery asp.net-mvc http-post