我一直无法专门在 IE8 中呈现列表。所有其他浏览器都按预期执行以下代码,但是,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>