JS 用变量作为关联数组的索引关联数组类似对象,遍历关联数组,可以用for...in语法:for(var key in data){ console.log(key + ':' + data[key])}js对象如何实现数组索引功能并且2023-03-05JavaScript100