In JavaScript, if you define a data in the following way,
<script>var Array=[1,2,3,4,];for (var i=0;i<array.length;i++) {alert (array[i]);} </script>
Then the parsing method of this array on different Web pages is different.
In the IE series, at least IE6-IE8 would think that the length of the array is 5, and the last element is undefined
In the Firefox wild Fox Zen, the length of this array is considered to be 4, and the last element is 4.
Although we usually do not define a ambiguity array like this, note that in conjunction with the server language aspx,jsp,php produce a JavaScript array, you will most likely unknowingly define an ambiguity array.
This is likely to cause some JavaScript statements that you cannot run.
Therefore, in conjunction with the server language aspx,jsp,php produce a JavaScript array, you need to pay attention to the end of your array do not leave a comma.
At the end of the "JavaScript" array definition, do not leave a comma