//**********************************复杂JSON举例****************************************
var Jsondata={dept:[{name:"张三",age:"19",phone:"1234567"},{name:"李四",age:"20",phone:"7654321"}]};
console.log(Jsondata)
//********************************利用JSON值设置divCSS样式******************************
var odiv=document.getElementById("box");
var fff={width:"200px",height:"120px",background:"blue"}
for(var j in fff){odiv.style[j]=fff[j]}
更多专业前端知识,请上【猿2048】www.mk2048.com