let json = {
"version2": 1591271474000,
"version1": 1591272854000
}
Object.keys(json);//["version2", "version1"]
JS获取json中所有的key
最新推荐文章于 2024-07-24 12:26:21 发布
let json = {
"version2": 1591271474000,
"version1": 1591272854000
}
Object.keys(json);//["version2", "version1"]