Internet Explorer 11 JavaScript Let Statement

后端 未结 1 1632
再見小時候
再見小時候 2020-12-21 21:26

I have rather complex code that is executing a multiple AJAX call in sequence through the \'for\' loop. This code works because I use \'Let\' statement when assigning scope

相关标签:
1条回答
  • 2020-12-21 21:55

    See this ES6 support table. Internet Explorer 11 does not support let in for/for-in loop iteration scope.

    You need to take a different approach.

    This answer lists a number of options you could implement manually.

    You could also use a tool like Babel to transpile your ES6 or newer JavaScript into ES5.

    0 讨论(0)
提交回复
热议问题