创建一个数组变量,然后往这个数组变量里插入数据
黑色头发:http://heisetoufa.iteye.com/
var arrayObj = [];
arrayObj.push({"id":"a"});
arrayObj.push({"id":"b"});
var arrayObj2 = [];
arrayObj2[0] = {"id":"a"};
arrayObj2[1] = {"id":"b"};
arrayObj2[2] = {"id":"c"};
黑色头发:http://heisetoufa.iteye.com/