2021年12月5日
摘要: 第一种: for......in const obj = { id:1, name:'zhangsan', age:18} for(let key in obj){ console.log(key + ' ' + obj[key]) } 输出结果: 第二种: 1)、Object.keys(obj) 阅读全文
posted @ 2021-12-05 13:43 危险* 阅读(119) 评论(0) 推荐(0) 编辑