摘要: <script> Array.prototype.swap = function (i, j) { var temp = this[i]; this[i] = this[j]; this[j] = temp; } Array.prototype.bubbleSort = function () { for (var i = this.length - 1; i > 0; --i) { for (var j = 0; j < i; ++j) { if (this[j] >... 阅读全文
posted @ 2012-11-06 09:36 vayne 阅读(402) 评论(0) 推荐(1) 编辑