IE7中标签标签中属性的绑定问题

时间:2013-08-23 17:13:25

标签: html angularjs data-binding internet-explorer-7

您好我无法在IE7中的idsfors属性中添加绑定。此示例在Chrome,IE8,...中正常工作,但在IE7或更低版​​本

上无效
<!doctype html>
<html lang="en" ng-app id="ng-app" xmlns:ng="http://angularjs.org">
<head>
    <meta charset="UTF-8">
    <title>fjseif</title>
</head>
<body>

 <!--[if lte IE 8]>
      <script src="json2.js"></script>
    <![endif]-->

<input type="radio" id="in{{1+1}}" name="lala">
<label for="in{{2}}">Hello1</label>

<input type="radio" id="in{{1+2}}" name="lala">
<label for="inhttp://jsfiddle.net/wttYe/">Hello1</label>

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
</body>
</html>

带有“in {{3}}”标签的标签不会绑定到“{{1 + 2}}”中的ID输入

我相信这是因为for to id链接发生在IE7上的DOM Load中,并且在编译后不再发生。

这是不起作用的真正原因,如果是,我该如何解决?

这是一个JSFiddle:{{3}}(JSFiddle不适用于IE7,但你明白了)

0 个答案:

没有答案
相关问题