[英]AngularJS with angular-ui bootstrap - getting it IE8 compatible
我正在尝试使用angular-ui引导程序在IE 8中使用一些AngularJS代码。我正在使用IE上的AngularJS开发人员指南中的指南 。 我将以下代码添加到index.html页面:
<!doctype html>
<html xmlns:ng="http://angularjs.org" id="ng-app" ng-app="plunker">
<head>
<!--[if lte IE 8]>
<script src="//cdnjs.cloudflare.com/ajax/libs/json2/20130526/json2.js"></script>
<script>
document.createElement('alert');
document.createElement('ng-include');
document.createElement('bookviewer');
document.createElement('accordion');
document.createElement('accordion-group');
document.createElement('accordion-heading');
</script>
<![endif]-->
:
问题是:我无法让它工作......上面的行是完整代码集的一部分,这个代码集太大而不能包含在这里。 我在https://github.com/svdoever/AngularJS-bookviewer上将完整的代码添加到github存储库中。 有没有我忘记的东西,或AngularJS + angular-ui bootstrap + IE8组合永远不会起作用?
我将我的示例版本部署到http://svdoever-playground.azurewebsites.net/ 。
我通过添加augment.js修复了这个问题。 https://github.com/javascript/augment问题是bootstrap.js正在使用IE8没有实现的JS功能。 Augment.js填补了空白。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.