js数组:
var workData = []; // 添加元素 workData.push({'pk':'1','name':'1x'}); workData.push({'pk':'2','name':'2x'}); workData.push({'pk':'3','name':'3x'}); workData.push({'pk':'4','name':'4x'}); // 删除第一个元素 workData.shift(); // 删除最后一个元素 workData.pop();
原文地址:http://blog.csdn.net/class_horse/article/details/46348099