摘要: let obj = { id: 1, type: 'daa', name: "asjd" }; let keys = []; for (var key in obj) { keys.push(key); } console.log(keys); //["id", "type", "name"] 这样 阅读全文
posted @ 2021-10-19 11:34 何以平天下 阅读(4311) 评论(0) 推荐(0) 编辑