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

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

 

 

posted @ 2018-12-05 11:52  万里冰封  阅读(9926)  评论(0编辑  收藏  举报