【发布时间】:2016-08-10 21:14:20
【问题描述】:
我有一个正在使用的范围 find 。它在chrome 中工作,但不在Internet explorer 11 中工作
我怎样才能让它在 IE 11 中工作?
$scope.NameList= [];
$scope.addRow = function () {
if ($scope.NameList.find(findName)) {
$scope.error = "Already in the list";
}
}
【问题讨论】:
-
尝试使用
.indexOf -
但是我的列表是对象列表,在这种情况下如何使用 indexof?
标签: javascript angularjs internet-explorer-11