obj=JSON.parse('{"id":"8","home":"beijing","uid":"13","uname":"张三"}') for (var a in obj) { console.log('这是属性名:' + a +"这是属性值:"+ obj[a] ); };