const obj = { channel: “wevmvmklskdosll12k;0”, index:0 }; Object.keys(obj).map(key => console.log(obj[key])); 转自: https://blog.csdn.net/qq_33733970/article/details/79860614 转载于:https://www.cnblogs.com/mabelhua/p/9895723.html