IE 11 Script1002过滤器语法错误 [英] IE 11 Script1002 Filter syntax error

查看:260
本文介绍了IE 11 Script1002过滤器语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ie11中收到一条错误消息,但在chrome中没有,错误是Script1002语法错误

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

我的代码如下

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


推荐答案

在IE 11中,此符号=>不起作用,将=>替换为===

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;

这篇关于IE 11 Script1002过滤器语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆