如何获取对象的属性及属性值

for(key in attr){
  //key:属性名
  //attr[key]:属性值    
}

猜你喜欢

转载自www.cnblogs.com/wanlibingfeng/p/10070080.html