对象不支持属性或方法“填充" [英] Object doesn't support property or method 'fill'
本文介绍了对象不支持属性或方法“填充"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在网上找不到相同的问题.IE 11给出错误对象不支持属性或方法 fill
".
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);
是否有任何便捷的方法来填充数组,而不是使用 for
循环?谢谢.
Is there any convenient way to to fill an array instead of using a for
loop? Thanks.
推荐答案
安装 查看全文