Error with Array.map() in IE11

后端 未结 1 595
我寻月下人不归
我寻月下人不归 2021-02-19 19:13

I have this code:

var labelsPrint= new Array();

var vector = labelsPrint.map((el) => el.id);

IE11 give me a error, because lost the datas.

相关标签:
1条回答
  • 2021-02-19 19:57

    IE11 has ES5, not ES6

    var vector = labelsPrint.map(function (el) { return el.id; });
    
    0 讨论(0)
提交回复
热议问题