js中对数组数字排序
(3条消息) js实现数字排序方法_soupJian前端养成记的博客-CSDN博客_js数字排序
<script type="text/javascript"> function week() { var selweekval = formSelects.value('weekid', 'valStr');//1,2,3,5 var sortweek = sortweek1(selweekval.split(',')); } //排序 function sortweek1(winfo) { winfo.sort(function (a, b) { return a - b }); return winfo; } </script>
标签:function,winfo,数字,js,数组,排序 From: https://www.cnblogs.com/ZhuMeng-Chao/p/16925209.html