更新时间:2022-05-23 21:40:25
我弄清楚了问题所在,也可能是您遇到的问题.
您的响应的Content-Type可能类似于application/javascript
而不是application/json.
这就是为什么它不是被Restangular捕获,而是被浏览器或REST客户端捕获的原因.
I figured out what the problem was and could be in your case too.
The Content-Type for your response would have probably been something like application/javascript
and NOT application/json.
Which is why it is not caught by Restangular but by browser or REST clients.