📜  javascript 反射迭代所有成员 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:01.728000             🧑  作者: Mango

代码示例1
theObject=document;//or whatever object
for (property in theObject) {
   console.log(`key= ${property} , value = ${theObject[property]}`)
}