js排序

function sortFunc(a,b){

     a-b;

}

var  arr1 = [11,6,3,2];

arr1.sort(sortFunc);

posted @ 2017-08-08 17:40  奋斗的大海  阅读(90)  评论(0编辑  收藏  举报