获取数组对象的属性名,返回一个新的数组

let yearArr = Object.keys(newVal);
console.log(Object.keys(newVal));
原文地址:https://www.cnblogs.com/lsyy2017/p/14688022.html