1. 排序 function qSort(a, arr){ var temp = arr.slice(0); var comArr = arr.sort(function(s,t){ return s-t; }); var times = 0; for (var i = 0; i < a; ++i){ if(temp[i] === com...