Example of JSON Array Operation usage in jquery: <br/> In jquery, The Traversal method is usually used in operations on JSON arrays, but it seems that there are not too many methods to remove these elements by adding or removing them. <Br/> tried JSON [I]. remove (), JSON. after removing (I), it will not work. It seems that JSON data appears in the DOM object of the webpage as an array. Below are some examples for your reference only. <Br/> 1. Create an array <br/> var arrayobj = new array (); // create an array <br/> var arrayobj = new array ([size]); // create an array and specify the length. Note that it is not the upper limit, yes length <br/> var arrayobj = new array ([element0 [, element1 [,... [, elementn]); // create an array and assign a value <br/> note that although the length is specified in the second method to create an array, but in fact, in all cases, the array is longer, that is, even if the length is set to 5, the elements can still be stored outside the specified length. Note: The length will change accordingly. <Br/> 2. Access to array elements <br/> var testgetarrvalue = arrayobj [1]; // obtain the element value of the array <br/> arrayobj [1] = "this is a new value "; // assign a new value to the array element <br/> 3. Add an array element <br/> arrayobj. push ([Item1 [item2 [... [itemn]); // adds one or more new elements to the end of the array and returns the new length of the array. <br/> arrayobj. unshift ([Item1 [item2 [... [itemn]); // Add one or more new elements to the array. The elements in the array are automatically removed and the new length of the array is returned. <br/> arrayobj. splice (insertpos, 0, [Item1 [, item2 [,... [, itemn]); // insert one or more new elements to the specified position of the array, Returns "". <Br/> 4. Deletion of array elements <br/> arrayobj. pop (); // remove the last element and return the value of this element <br/> arrayobj. shift (); // remove the first element and return the element value. The elements in the array are automatically moved forward. <br/> arrayobj. splice (deletepos, deletecount); // deletes the specified number of deletecount elements starting from deletepos in the specified position, returns the removed elements in the array form <br/> 5. truncates and merges arrays <br/> arrayobj. slice (START, [end]); // return part of the array in the form of an array. Note that the elements corresponding to the end are not included, if end is omitted, all elements after start are copied. <br/> arrayobj. concat ([Item1 [, item2 [,... [, itemn]); // combines multiple arrays (or strings, or arrays and strings) Returns the connected array. <br/> 6. Copy the array. <br/> arrayobj. slice (0); // returns the copy array of the array. Note that it is a new array, not pointing to <br/> arrayobj. concat (); // returns the copy array of the array. Note that it is a new array instead of pointing to <br/> 7. stringized array elements <br/> arrayobj. join (separator); // returns a string that connects each element value of the array and is separated by separator. <Br/> tolocalestring, tostring, and valueof: can be considered as a special use of join, not commonly used <br/> 8. Sorting of array elements <br/> arrayobj. reverse (); // returns the array address if the element is reversed (first to last and last to the beginning). <br/> arrayobj. sort (); // sorts array elements and returns the array address.