var employees =[{
name:"jacob",
age :23,
city:"virginia",
yoe :12,
image :'a.jpg'
},
{
name:"aaron",
age :21,
city:"virginia",
yoe :12,
image :'b.jpg'
},
{
name:"johnny",
age :50,
city:"texas",
yoe :12,
image :'c.jpg'
},
{
name:"jacob",
age :12,
city:"virginia",
yoe :12,
image :'a.jpg'
}];
我要訪問的圖像和瀏覽器中顯示它和我一直保持着文件夾中這些圖像....什麼說法是需要顯示的圖像,但只有在JavaScript馬初學者..請幫助如何顯示在對象中聲明爲url的圖像,並將這些對象存儲在數組中?
這是沒有有效的JSON:'圖像= {' – bitWorking 2013-04-23 11:10:15
爲什麼圖像不是一個僱員的「屬性」? – Andreas 2013-04-23 11:13:33