<script type="text/javascript"> function sortNum(a,b) { return b-a; }var myarr = new Array("80","16","50","6","100","1");document.write(myarr.sort(sortNum));</script>
就这么规定吧,没有为什么