我有一个AngularJS应用程序,在Internet Explorer 11中出现了一些问题 - 在我的管理区域,我收到了控制台日志错误,这些错误似乎与在使用Internet Explorer(特别是版本11)时过滤数据时注意到的一些问题相关,但在Chrome / Firefox等浏览器中运行正常。
Object doesn't support property or method 'findIndex'
at Anonymous function (http://myapp.local/js/controllers/admin/UsersController.js:363:9)
当我在代码中导航到这一行时,这就是问题所在的部分:-
[363] var indexInOriginalSet = $scope.originalSet.findIndex(function(u) {
[364] return u.id == userId;
[365] });
如何解决使用findIndex方法时IE浏览器出现的问题?
Array.prototype
的自己的prototype
。 - NonPolynomial