数组属性类似于hashmap

var items = Array();
items[0] = {"type":"item","itemid":"6959743","uid":"zerolite","date":1213088318,"timestamp":1213088318,"plk":"\/politics\/A_daughter_of_white_apartheid_Nelson_Mandela_s_right_hand","title":"A daughter of white apartheid - Nelson Mandela's right hand.","url":"http:\/\/lifeandhealth.guardian.co.uk\/women\/story\/0,,2283711,00.html","dig_count":1,"area":"Upcoming","userimage":"\/users\/zerolite\/s.png"};
alert(':::'+items[0].type);

你可能感兴趣的:(html)