IE 11 Script1002 Filter syntax error

╄→尐↘猪︶ㄣ 提交于 2019-12-10 13:45:56

问题


Hi there I get a error message in ie11 but not in chrome the error is Script1002 Syntax error

My code is as follows

 vm.NoOftroopMemEditReq = (vm.EventAttendees.TicketAttendees.filter(a => a.Attendees.some(Attendee => Attendee.IsEditRequired === true))).length;

回答1:


in IE 11 this symbol => don't work, replace => with ===

 vm.NoOftroopMemEditReq = (vm.EventAttendees.TicketAttendees.filter(function (a) { return a.Attendees.some(Attendee === Attendee.IsEditRequired === true); })).length;


来源:https://stackoverflow.com/questions/46927297/ie-11-script1002-filter-syntax-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!