【发布时间】:2014-12-21 11:03:46
【问题描述】:
所以我正在开发一个小应用程序,它可以从这样的 API url 获取它...... $http.get(s_url) .then(函数(res) {... 我的应用程序适用于 chrome、safari、opera 和 firefox,但在 IE9 中显示空白屏幕 我的 html 或 js 文件中是否缺少某些内容? 这是我在 IE 的 html 文件中的内容...
<!--[if lte IE 8]>
<script src="js/json2.js"></script>
<script>
document.createElement('ng-include');
document.createElement('ng-pluralize');
document.createElement('ng-view');
document.createElement('x-restrict');
document.createElement('x-fileupload');
// Optionally these for CSS
document.createElement('ng:include');
document.createElement('ng:pluralize');
document.createElement('ng:view');
//customized tags
document.createElement('location');
document.createElement('temp');
document.createElement('image');
document.createElement('caption');
document.createElement('temps');
document.createElement('remtemps');
</script>
<![endif]-->
<div ng-view></div>
</head>
【问题讨论】:
-
这只处理 IE 8 之前的版本?
-
我只需要它来处理IE9及更高版本
-
让我重申一下:您的 sn-p 中的所有代码都没有在 IE9 中运行。这是故意的吗?
-
-
啊,是的,我们有它:
if lt IE 9匹配“小于 IE 9”的版本 - 也就是说,它与if lte IE 8匹配相同的东西。如果你想在 IE 9 中运行第一个块,它应该只是if IE 9。
标签: javascript jquery html angularjs internet-explorer