我无法在IE9 +上使用这个简单的例子。它在firefox和chrome中运行良好。谢谢你的帮助。
<!DOCTYPE html>
<html xmlns:ng="http://angularjs.org" id="ng-app" ng-app>
<head>
<title>Hello World, AngularJS - ViralPatel.net</title>
<script type="text/javascript"
src="angular.min.js"></script>
</head>
<body>
Write some text in textbox:
<input type="text" ng-model="sometext" />
<h1>Hello {{ sometext }}</h1>
<h4>Uppercase: {{ sometext | uppercase }}</h4>
<h4>Lowercase: {{ sometext | lowercase }}</h4>
</body>
</html>
答案 0 :(得分:4)
尝试在头部添加以下代码:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
像这样:
<head>
<title>Hello World, AngularJS - ViralPatel.net</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script type="text/javascript" src="angular.min.js"></script>
</head>
希望这有帮助。