Object.keys方法

序号 传入的数据 结果
1 对象 属性名
2 字符串 返回索引
3 构造函数 空数组或者属性名
4 数组 索引

 

原文地址:https://www.cnblogs.com/wylj/p/8678221.html