mengmenggreat
2015-02-12 16:15
<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>
就这么规定吧,没有为什么
JavaScript进阶篇
468194 学习 · 21891 问题
相似问题