用javascript的for来遍历这个数组即可
for (x in tool){ document.write(tool[x]['id'] + ""); document.write(tool[x]['name'] + "");}
希望能帮助到你