标签:style blog io os ar java for strong 数据
JS中数组:
操作:
var arr1 = arr2;
function copy(arr1) { var arr2 = []; for(var i = 0; i < arr1.length; i++) { arr2[i] = arr1[i]; } return arr2; }
数字正序排序: function compare(num1,num2) { return num1 - num2; }; 字符正序排序: function compare(str1,str2) { if(str1 > str2) return 1; else return -1; } 字典顺序:0-9A-Za-z
标签:style blog io os ar java for strong 数据
原文地址:http://www.cnblogs.com/jinkspeng/p/4020455.html