[英]angularJS in Jquery function: Uncaught TypeError: Cannot read property 'noDisagree' of undefined
[英]AngularJS + JQuery = TypeError: Cannot read property 'then' of undefined
嘗試調試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模塊,問題消失了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.