JS: 将一个数变成这个数的数组

Array(4).fill(10)

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Start_Simple/article/details/128338618