用JS实现排序的功能

用JS实现排序的功能

js常用排序实现,参考代码如下&ltscript&gt Array.prototype.swap = function(i, j) { var temp = this[i] this[i] = this[j] this[j
JavaScript90