当前位置: 首页 > Web前端 > HTML

JS如何添加数组元素?

时间:2023-03-27 23:22:00 HTML

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