Angularjs ie8兼容性
我有一些在Chrome和IE9中运行良好的代码。在IE8浏览器中,运行兼容模式时,它会中断。用户群以兼容模式运行IE8。我把这个放进去是为了强制正常使用: 内容=IE=边缘Angularjs ie8兼容性,angularjs,internet-explorer-8,click,Angularjs,Internet Explorer 8,Click,我有一些在Chrome和IE9中运行良好的代码。在IE8浏览器中,运行兼容模式时,它会中断。用户群以兼容模式运行IE8。我把这个放进去是为了强制正常使用: 内容=IE=边缘 <form class="imei-block-radio" name="myForm"> <input type="radio" name="blocktype" ng-model="actionType" value="block" ng-click="changeBlock
<form class="imei-block-radio" name="myForm">
<input type="radio" name="blocktype" ng-model="actionType" value="block" ng-click="changeBlock('block')" checked="true"> Block <br/> <br/>
<input type="radio" name="blocktype" ng-model="actionType" value="unblock" ng-click="changeBlock('unblock')"> Un-Block <br/>
</form>
警报始终显示“值”始终未定义。此外,控制器中定义的其他变量,如:
$scope.actionType = 'block';
在changeBlock函数中也未定义 ng模型似乎不适用于IE8及更早版本的输入无线电 这对我很有用:
解决方法:用ng check替换您的ng型号,然后单击ng@Erik我遇到了类似的问题。有人找到解决办法了吗?@Curt不幸的是,我不是那个有这个问题的人。我只是编辑了这个问题。
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
<script>
document.createElement('header');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('nav');
document.createElement('footer');
</script>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
<script>
document.createElement('header');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('nav');
document.createElement('footer');
</script>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->