【发布时间】:2014-01-06 00:10:25
【问题描述】:
我有一个不能在 IE11 中工作的 Angular JS v1.2.5 表单。它在 Firefox、Chrome、Safari 中运行良好。我的表单在占位符属性内使用带有插值的文本区域。
<body ng-controller="MainCtrl">
<p>Hello {{ name }}!</p>
<textarea rows="4" placeholder="Description of the {{ name }}"></textarea>
</body>
如果使用插值指定占位符属性,我会收到以下错误(仅在 IE 中)。
Error: Invalid argument.
at interpolateFnWatchAction (https://localhost:44300/Scripts/angular.js:6410:15)
at $digest (https://localhost:44300/Scripts/angular.js:11581:23)
at $apply (https://localhost:44300/Scripts/angular.js:11832:13)
at done (https://localhost:44300/Scripts/angular.js:7774:34)
at completeRequest (https://localhost:44300/Scripts/angular.js:7947:7)
at onreadystatechange (https://localhost:44300/Scripts/angular.js:7903:11)
这是一个在 Firefox、Chrome、Safari 中运行良好的 Plnkr,但在 IE11 中却不行。 http://plnkr.co/edit/4cJzxtVSDoL2JMI9nYrS?p=preview
我在尝试在 Angular.js 中调试时迷失了方向。我真的很感激任何能让我朝着正确方向前进的提示。谢谢。
【问题讨论】:
-
也许首先要做的就是复制它。
-
正在处理它。同时,希望能找到遇到此问题的其他人。
-
Itr 看起来像是在一个 ajax 请求上,你能试着在你的小提琴中伪造 AJAX 吗?有一个 URL JSFiddle 可以让您发布并获取相同的数据,检查开发工具中的网络选项卡,然后在收到错误时发布您返回的内容。
标签: javascript jquery internet-explorer angularjs