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