Object doesn't support property or method 'fill'

后端 未结 7 794
谎友^
谎友^ 2021-01-04 08:07

I cannot find same problem online. IE 11 gives error \"Object doesn\'t support property or method fill\".

var arr = new Array(5);
arr.fill(false         


        
相关标签:
7条回答
  • 2021-01-04 09:09

    Install the trivial polyfill and continue using .fill(…).

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