JSON :
[
{
"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和Chrome中,上面编写的代码工作正常,{{value}}
正在解决相应的值。但在IE {{value}}
中显示为{{value}}
!
更新:IE8特有的问题
答案 0 :(得分:0)
您应该阅读此article about using Angular with IE8 and earlier。你需要了解一些技巧。每当我使用Angular定位IE8时,我都会避免编写元素指令并改为使用属性指令。