Object.keys(obj)
let person = {name:"张三",age:25,address:"深圳",getName:function(){}}
Object.keys(person) // 输出: ["name", "age", "address","getName"]
Object.keys(obj)
let person = {name:"张三",age:25,address:"深圳",getName:function(){}}
Object.keys(person) // 输出: ["name", "age", "address","getName"]
本文标题:Object.keys
本文链接:https://www.haomeiwen.com/subject/husrwktx.html
网友评论