我是一条有梦想的咸鱼

摘要: var price=[100,500,200,800,1000]; price.sort(function(a,b){ return a-b; //从小到大 //return b-a; 从大到小 }); var name=["帅哥","阿哲,"赵四","李琛"]; name.sort(functio 阅读全文
posted @ 2018-09-15 12:38 帅哥天下9 阅读(114) 评论(0) 推荐(0) 编辑