angularjs - iOS8 Safari 上的 Angularjs 应用程序中的 TypeError : Attempted to assign to readonly property.

标签 angularjs ios8 strict-mode

我们的移动应用程序收到“TypeError: Attempted to assign to readonly property”。仅在 IOS 8 上,堆栈跟踪没有帮助,似乎在 Angular 代码中。

这可能是由于 Angularjs 代码顶层的“严格使用”而发生的。
我的问题是 (1) 为什么它只在 IOS8 上开始发生?这是IOS8的bug吗?
(2) 或者这是 IOS8 上出现的 Angular 错误? (3) 或者也许我们违反了严格模式规则,但只有 IOS8 开始捕获它们!我对第三种选择持怀疑态度,因为 strict mode is supported其他主流浏览器。

我发现了一个类似的报告问题 here .

最佳答案

看起来这是一个 IOS8 bug

至少 ember.js 的人会暂时从他们的代码中删除“严格使用”,直到它被修复。
Ember.js issue

关于angularjs - iOS8 Safari 上的 Angularjs 应用程序中的 TypeError : Attempted to assign to readonly property.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26044056/

相关文章:

ios - 升级项目 ios8 Xcode 6.0.1

objective-c - iOS8 如果应用程序位于前台则禁用推送通知

javascript - 我们必须注意 JavaScript "strict mode"吗?

javascript - 严格模式和保留字

javascript - 如何通过导入的 momentjs 为 angularjs-bootstrap-datetimepicker 设置语言环境

css - 如何在元素 onclick 上使用切换 css 类?

javascript - 展开/折叠树中的子元素(AngularJS)

java - 使用 SQL 查询或 Java 根据条件对 ArrayList 进行排序

ios - 带有参数的今日小部件 openurl