摘要: var array = [{id: '0',parentId:null},{id: '1',parentId:'0'},{id: '2',parentId:'0'},{id: '3',parentId:'1'},{id: '4',parentId:'3'},{id: '5',parentId:'4'}]; //排序 array.sort(function(a,b){... 阅读全文
posted @ 2017-10-19 17:36 Mary哎呀小龙 阅读(501) 评论(0) 推荐(0) 编辑