AngularJs 列表属性在 Internet Explorer 11 中不起作用
AngularJs List attribute does not work in internet explorer 11
我有一个正在使用的示波器 find
。它在 chrome
中有效,但在 Internet explorer 11
中无效
我怎样才能让它在 IE 11 中工作?
$scope.NameList= [];
$scope.addRow = function () {
if ($scope.NameList.find(findName)) {
$scope.error = "Already in the list";
}
}
Internet Explorer 不支持数组的 find
方法。您必须使用 indexOf
然后访问密钥(如果存在)。
我有一个正在使用的示波器 find
。它在 chrome
中有效,但在 Internet explorer 11
中无效
我怎样才能让它在 IE 11 中工作?
$scope.NameList= [];
$scope.addRow = function () {
if ($scope.NameList.find(findName)) {
$scope.error = "Already in the list";
}
}
Internet Explorer 不支持数组的 find
方法。您必须使用 indexOf
然后访问密钥(如果存在)。