📜  关联数组添加新键和值js - Javascript代码示例

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

代码示例1
params = {};
params['someWord'] = someVal;

var params = {someWord: "someVal", two: "2"};

//There is no "associative array" in JavaScript, but Objects are commonly used as a substitute and provide similar functionality.