📜  向数组添加值 javascript 代码示例

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

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