标签:OLE console pre class js 数组 har arp bsp sharp
var arr=[12,83,27,65,45,32,27,11,4]; var k; for(i=0;i<arr.length-1;i++){ for(j=0;j<arr.length-1-i;j++){ if(arr[j]>arr[j+1]){ k=arr[j]; arr[j]=arr[j+1]; arr[j+1]=k; } } } console.log(arr);
标签:OLE console pre class js 数组 har arp bsp sharp
原文地址:https://www.cnblogs.com/wh20xy/p/13268720.html