📜  在javascript代码示例中推送数组中的元素

📅  最后修改于: 2022-03-11 15:04:18.343000             🧑  作者: Mango

代码示例3
var array = [];
var element = "anything you want in the array";
array.push(element); // array = [ "anything you want in the array" ]