归档: 2011/12

0

Javascript 数组排序

123456789101112131415161718function sort( arr) { var a = arr || [1,2,3,5,3,2,6,4,9,8,7]; var N=a.length; var temp; for (i=0; i<N-1; i++) { //外循环执ˆ