📅  最后修改于: 2022-03-11 15:03:21.798000             🧑  作者: Mango
代码示例2
var p = {
0: "value1",
"b": "value2",
key: "value3"
};
for (var key of Object.keys(p)) {
console.log(key + " -> " + p[key])
}