1.My Json(部分实例)
var txt = '{ "sites" : [' +
{ "name":"彩铅" , "url":"www.....com" },
{ "name":"素描" , "url":"www.....com" },
{ "name":"抽象画" , "url":"www.....com" }
{ "name":"唱歌" , "url":"www.....com" },
}
var obj = eval ("(" + txt + ")");
document.getElementById("name").innerHTML=obj.sites[0].name
document.getElementById("url").innerHTML=obj.sites[0].url
document.getElementById("name").innerHTML=obj.sites[0].name
document.getElementById("url").innerHTML=obj.sites[0].url
......