面向对象编程的语言,都存在对对象的一些操作,其中就包括遍历未知对象的属性值。
通常情况常见的遍历对象的方法:
var o = {
name: 'cloud',
age: 20
}
for (i in o)
2025-03-16