摘要: 从数组(已知数据)中拿数据,防止自己设置的默认值最大(保底思想) <script> let arr = [5, 9, 7, 8, 11, 15, 25, 255]; let max = arr[0]; //从数组中拿数据,防止默认值最大 // let max=0; 这样设置的话在不知道数组中具体情况 阅读全文
posted @ 2022-07-12 19:20 沧月我爱 阅读(31) 评论(0) 推荐(0)