作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试调试 JS 问题,但没有成功 - 跟踪如下。
TypeError: Cannot read property 'then' of undefined
at Object.fn (angular.min.js:937)
at l.$get.l.$digest (angular.min.js:508)
at l.$get.l.$apply (angular.min.js:522)
at HTMLLIElement.<anonymous> (angular.min.js:928)
at HTMLLIElement.x.event.dispatch (jquery-1.11.0.min.js:10)
at HTMLLIElement.x.event.add.v.handle (jquery-1.11.0.min.js:10)
问题是生成错误的代码不包含“then” - 我正在从数组中删除对象,当最后一个对象被删除但应用程序继续正常运行时会引发错误。想知道这是否只是一个我可以忽略的内部 Angular 错误?
如何更好地追踪原因?
最佳答案
更新了 ngAnimate 模块,问题消失了。
关于javascript - AngularJS + JQuery = 类型错误 : Cannot read property 'then' of undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28469034/
我是一名优秀的程序员,十分优秀!