ionicframework / angularjs:ios错误:尝试分配给只读属性

时间:2014-11-25 10:30:53

标签: angularjs ionic-framework restangular

大家好我有这段代码:

RestangularProvider.setResponseExtractor(function(response) {
            var newResponse = response;
            newResponse.originalElement = response;   //THIS IS LINE 112
            return newResponse;
        });

在Android中一切正常,但在IOS(Xcode控制台)中我得到了这个:

ERROR: Error: Attempted to assign to readonly property.
file:///var/mobile/Applications/0799BB3F-DEF2-4BC6-A360-6D31BE7AFB43/Utrend.app/www/scripts/app.js:112:24

我的错误在哪里?

感谢。

0 个答案:

没有答案