Skip to content
chen shucheng edited this page Mar 9, 2017 · 1 revision

var a=[12,3,5,6,1]; function sortNum(a,b){return a-b;} var b=a.sort(sortNum); console.log(b); a.forEach(function(i,v){})

Clone this wiki locally