摘要: var json={name:'小谢',age:'28'}var a = [];function extent(child,parent){for(var attr in parent){child[attr]=parent[attr];}}extent(a,json);alert(a.name); 阅读全文
posted @ 2016-12-28 00:22 春风得意之时 阅读(122) 评论(0) 推荐(0) 编辑