Tag: babel

IE中不支持方法’assign’,该怎么做

我有一个小/ javascript,Babel脚本,在Chrome和Firefox浏览器中运行得很好,但在Internet Explorer 11中失败了。 我希望有人可以帮助我。 这是我的function: getDaysWithEvents() { // Get all the days in this months calendar view // Sibling Months included const days = this.getCalendarDays(); // Set Range Limits on calendar this.calendar.setStartDate(days[0]); this.calendar.setEndDate(days[days.length – 1]); // Iterate over each of the supplied events this.props.events.forEach((eventItem) => { const eventStart = this.getCalendarDayObject(eventItem.start); const eventEnd = this.getCalendarDayObject(eventItem.end); […]