//**********************************复杂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={"200px",height:"120px",background:"blue"} for(var j in fff){odiv.style[j]=fff[j]}