[英]“Error: Invalid argument.” on IE11
I'm getting the error listed below from Angular 1.5.7 on IE11.我在 IE11 上从 Angular 1.5.7 收到下面列出的错误。 Angular IS NOT throwing any errors on Chrome. Angular 不会在 Chrome 上抛出任何错误。 I tried the following:我尝试了以下方法:
Upgraded jquery since I see that listed in the error stack.升级了 jquery,因为我看到错误堆栈中列出了它。
Error: Invalid argument. at interpolateFnWatchAction (http://localhost:8080/mdp-js/app/assets/angular/angular.js:9621:17) at interpolateFnWatcher (http://localhost:8080/mdp-js/app/assets/angular/angular.js:12295:17) at watchGroupAction (http://localhost:8080/mdp-js/app/assets/angular/angular.js:16952:13) at Scope.prototype.$digest (http://localhost:8080/mdp-js/app/assets/angular/angular.js:17286:23) at Scope.prototype.$apply (http://localhost:8080/mdp-js/app/assets/angular/angular.js:17552:13) at Anonymous function (http://localhost:8080/mdp-js/app/assets/angular/angular.js:17850:11) at completeOutstandingRequest (http://localhost:8080/mdp-js/app/assets/angular/angular.js:5955:7) at Anonymous function (http://localhost:8080/mdp-js/app/assets/angular/angular.js:6234:7) undefined
This is an Angular known issue as you can see in this thread .这是一个Angular 已知问题,您可以在此线程中看到。
As suggested, when using directives such as ng-placeholder
or ng-style
you can workaround with ng-attr-placeholder
or ng-attr-style
.正如建议的那样,当使用诸如ng-placeholder
或ng-style
指令时,您可以使用ng-attr-placeholder
或ng-attr-style
。
For the record, this error was being caused by the Angular Block UI directive: https://github.com/McNull/angular-block-ui .作为记录,此错误是由 Angular Block UI 指令引起的: https : //github.com/McNull/angular-block-ui 。 I removed that directive & the error stopped.我删除了该指令并且错误停止了。
我遇到了这个问题,这是因为我以两种不同的方式设置元素的内容:
<span ng-bind-html="functionThatGeneratesHtml()">{{ functionThatGeneratesHtml() }}</span>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.