📅  最后修改于: 2022-03-11 15:04:06.328000             🧑  作者: Mango
var obj = {
key1: []
};
obj.key1.push("something"); // useing the key directly
obj['key1'].push("something else"); // using the key reference
console.log(obj);
// ======= OR ===========