JSON:{{值}}是没有得到解决,在IE
[
{
"1": "January",
"2": "February",
"8": "August",
"9": "Septemeber",
"10": "October",
"11": "November",
"12": "December"
},
{
"2": "February",
"3": "March",
"4": "April",
"5": "May",
"6": "June",
"7": "July",
"8": "August"
}
]
HTML:
<select class='W1_Normal V4 A_{{$parent.$index}}' style="width:100px;" id="A_{{$parent.$index}}_{{$index}}" name="A_{{$parent.$index}}_{{$index}}" onchange="modifiyOtherDropDowns(this);removeErrorMessagesOfAllLowerDivsUsingObj(this)">
<option value=""></option>
<option ng-repeat="(key, value) in ap" value="{{key}}">{{value}}</option>
</select>
在Firefox和铬,上面写代码工作正常,{{value}}
是解决相应的价值。但在IE {{value}}
正在显示为{{value}}
!
UPDATE:问题具体到IE8
请勿使用ngRepeat构建选择,请使用[ngOptions](https://docs.angularjs.org/api/ng/directive/select)。 – Yoshi 2014-09-13 10:09:23
您可以使用ng-class将模型绑定到css类。 IE在F12中显示javascript错误吗? – jao 2014-09-13 10:10:26
你检查了这里的所有步骤https://docs.angularjs.org/guide/ie – 2014-09-13 10:11:53