TypeScript版冒泡 maopao(arr:number[], num: number): number[] {let item =0;let temp;for (varindex = 1; index arr.length -num; index++) {var element =arr[index];if (arr[index] <arr[index -1 TypeScript 2023-10-11 41 点赞 0 评论 62 浏览