JS 如何添加数组元素?

let arr = new Array();

arr.push('cows');

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

评论

暂无评论