Alternative or polyfill for Array.from on the Internet Explorer

前端 未结 5 2059
南方客
南方客 2020-11-27 18:12

I have a problem with my Angular App on the Internet Explorer. It runs everywhere without a problem (Chrome, Mozilla, Edge), but on on the IE.

I have analyzed with th

5条回答
  •  攒了一身酷
    2020-11-27 18:38

    You could use slice.call for array-like objects. This means your code would read:

    myDataSet[index - 1].data = [].slice.call(tmp);

提交回复
热议问题