likes
comments
collection
share

JS 如何添加数组元素?

作者站长头像
站长
· 阅读数 31
let arr = new Array();

arr.push('cows');

console.log(arr);
// 预期输出: ['cows']