js原生小知识

new Array(3).fill(0)
就会生成3个元素为0的数组

posted @ 2023-04-11 10:56  jialiangzai  阅读(27)  评论(0)    收藏  举报