我一直無法在IE8中專門呈現列表。所有其他瀏覽器按預期執行以下代碼,但IE8完全忽略該功能。非常感謝任何提示,建議和/或解決方案,乾杯。AngularJS IE8問題
alert("workflow.js"+ " this call goes off in IE8");
$scope.makeAndGetList = function(list) {
//todo: lj: IE8 doesn't make it here
//alert("workflow.js"+ " no IE");
var parts = list.split('.'),
current = $scope.workflow;
_.each(parts, function(part, index) {
if (current[part] == undefined) {
current[part] = (index == parts.length - 1) ? [] : {};
}
current = current[part];
//todo: lj: IE8 doesn't make it in here
// app.appAlert("workflow.js"+ " line 19");
});
alert("workflow.js - this functions correctly executes in IE8");
下面是HTML的要求:
<sa-list list="makeAndGetList('areas_of_need')" edit="true" model="areas_of_need" array-mode="true">
<sa-lookup style="multiselect" override="false" list="areas_of_need.terms" model="areas_of_need" model-key="need" label="{{locale.iprc.areas_of_strengths_and_needs.needs}}"></sa-lookup>
</sa-list>
如何調用'makeAndGetList'?你可以在這裏展示HTML嗎? – raina77ow
如果你還沒有看到它,這裏討論IE兼容性:http://docs.angularjs.org/guide/ie – Gloopy
謝謝Gloopy的提示,不幸的是,我已經通過IE瀏覽器指南閱讀並創建瞭如圖所示的元素但它沒有解決問題 – LJA