ISSUE :在IE9中,当我调用$ resource.save时,我在错误回调函数内的response.data
上得到 undefined 。在Chrome中,response.data
有"错误"从服务器返回的JSON对象。
这是$资源调用:
TicketResource.save(inputParams, function (data) {
//the data object is same on both browsers
}, function (response) {//called when server returns status 422
//IE9: response.data is undefined
//Chrome: response.data contains the server returned JSON object
});
在IE9开发者工具中," statusText"响应对象上有此错误
statusText: "IOError [IOErrorEvent type=\"ioError\" bubbles=false cancelable=false eventPhase=2 text=\"Error #: [IOErrorEvent type=\"ioError\" bubbles=false cancelable=false eventPhase=2 text=\"Error #2032"
注意:在我的应用程序中,$ httpProvider
感谢有关此问题的任何意见!