AngularJS数据用花括号在Internet Explorer绑定问题 [英] AngularJS Data Binding issue on Internet Explorer using Curly Braces
问题描述
我在做什么错在这里?我已经通过了 IE兼容性指南读,但没有提到使用数据绑定{{} }标签。这工作正常在其他浏览器,但IE浏览器(包括IE9)失败。
What am I doing wrong here? I've read through the IE Compatibility Guide but that doesn't mention data binding using {{}} tags. This works fine on other browsers but fails in IE (including IE9).
HTML
<html ng-app class="ng-app">
<head></head>
<body>
<div ng-controller="Controller">
<p>{{test}}</p>
</div>
</body>
</html>
JavaScript的:
JavaScript:
function Controller($scope) {
$scope.test = "Hello world";
}
我试着加入兼容性指南中提到的步骤,但似乎并没有解决这个问题,除非我失去了一些东西明显!
I've tried adding the steps mentioned in the compatibility guide but that doesn't seem to solve it, unless I'm missing something obvious!
它应该输出Hello World的,但在IE浏览器输出{{测试}}
It should output "Hello world", but on IE it outputs {{test}}.
非常感谢。
推荐答案
这个问题似乎不是棱角分明,但的jsfiddle
The problem appears not to be angular but jsfiddle
http://plunker.no.de/BL97Av/ 这部作品在IE9
此外,IE7或IE8的兼容性,你是你自己的。
Also, IE7 or IE8 Compatibility you are on your own.
这篇关于AngularJS数据用花括号在Internet Explorer绑定问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!