[$sce:iequirks] 严格上下文转义在怪异模式下不支持 Internet Explorer 版本 < 9

2023-12-04

当我将 AngularJS 从 1.0.7 升级到 1.2.0rc1 时,我收到以下错误:

[$sce:iequirks] Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode
  • 我已经添加了<!doctype html>但无济于事。
  • 我还需要支持 IE7(呜呜)。

来自github问题与这个问题相关 -$sce does not标准模式下支持IE7。

$sce 的最低标准是标准模式下的 IE8。 IE7标准模式 不支持。如果你必须支持IE7,你应该禁用$sce 完全地。

禁用$sce:

angular.module('ie7support', []).config(function($sceProvider) {
  // Completely disable SCE to support IE7.
  $sceProvider.enabled(false);
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

[$sce:iequirks] 严格上下文转义在怪异模式下不支持 Internet Explorer 版本 < 9 的相关文章

随机推荐