摘要: 学习教程:黑马程序员视频链接 循环 案例-九九乘法表 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-s 阅读全文
posted @ 2023-11-09 22:26 ayubene 阅读(29) 评论(0) 推荐(0)
摘要: sort()函数默认按照字符串Unicode码排序 如果希望按照数字大小排序,需要传参 let arr = [2,4,5,6,22,9,10,111,2,1,32]; console.log(arr.sort(function(a,b) { return a - b; //升序 // return 阅读全文
posted @ 2023-11-09 22:21 ayubene 阅读(90) 评论(0) 推荐(0)