IE 11 AngularJS error - Object doesn't support property or method 'from'

前端 未结 4 1047
一生所求
一生所求 2021-01-13 02:46

In my JavaScript I have a function detectEnvironmentAndGetLEAndDepot() which is called onload via HTML. I\'m working with wicket, and need to take

4条回答
  •  星月不相逢
    2021-01-13 03:30

    As Array.from method is not supported by IE, you can try to use:

    [].slice.call(document.getElementsByTagName('span')).forEach(function(v) {});
    

    This doesn't require usage of any 3rd party libraries.

提交回复
热议问题