JS 用变量作为关联数组的索引关联数组类似对象,遍历关联数组,可以用for...in语法:for(var key in data){ console.log(key + ':' + data[key])}[20, 50, 6, 100, 82023-02-20JavaScript110