摘要:
function selectSort(arr) { var len = arr.length; for (var i = 0; i arr[j]) { var temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; }... 阅读全文
摘要:
var add; var f1 = function() { var a = 1; add = function() { a++; } function f2() { console.log(a); } return f2; } var t1 = f1(); var t2 = f1(); var t3 = ... 阅读全文