后台抛出异常:throw new Exception("操作失败!");
ajax的error函数可以通过以下方式获取异常信息:
err: function (data) { alert(data.responseJSON.message); }
后台抛出异常:throw new Exception("操作失败!");
ajax的error函数可以通过以下方式获取异常信息:
err: function (data) { alert(data.responseJSON.message); }