[求助]斑竹 蓝的和红的是什么意思啊?有甚作用?
<script language="javascript">var x=new Array(55,80,23,30,20,76);
document.write("调用函数前x:"+x+" ");
sort(x);
document.write("调用函数后x:"+x+" ");
function sort(x)
{
for(j=0;j<x.length;j++)
for(i=0;i<x.length;i++)
if(x[i]>x[i+1])
{ t=x[i];
x[i]=x[i+1];
x[i+1]=t;}
}
</script>