使用 angular.module () 时出现错误 "Object doesn't support property or method 'module' "

Getting error "Object doesn't support property or method 'module' " when using angular.module ()

我在代码中使用 angular.module() 的任何地方,当我通过 IE 浏览器访问时,该部分都会失败。在 chrome 中一切正常。 此外,我的代码所在的应用程序将 IE 版本降级为 7 并呈现代码。 我需要让 angular.module() 在 IE 7 中工作。

错误如下: SCRIPT438:对象不支持 属性 或方法 'module'

angular我用的js版本是1.5.5

还注意到一件奇怪的事情,在第一次运行时,我得到了这个错误,但是如果我按 ctrl + f5 然后错误消失并且应用程序运行正常

Angular doesn't support IE 8, let alone IE 7:

Note: AngularJS 1.3 has dropped support for IE8. Read more about it on our blog. AngularJS 1.2 will continue to support IE8, but the core team does not plan to spend time addressing issues specific to IE8 or earlier.