标签:
1、js数组使用sort()排序
var a = ["1","12","3","4","0"];
document.write(a.sort(function(a,b){ //实现升序排序
return a - b;
}));
2、js使用数组实现一些数据结构
其中 shift()用来移除数组的第一个项,并返回该项。
标签:
原文地址:http://www.cnblogs.com/scnuwangjie/p/4905544.html