摘要:
var arr = [12, 56, 25, 5, 82, 51, 22]; var temp; var minIndex; for (var i = 0; i < arr.length - 1; i++) { minIndex = i; for (var j = i + 1; j < arr.le 阅读全文
摘要:
var arr = [12,56,25,5,82,51,22]; for (var i = 0; i < arr.length - 1; i++) { for (var j = 0; j < arr.length - 1 - i; j++) { if (arr[j] > arr[j + 1]) { 阅读全文
摘要:
var arr = [12, 56, 25, 5, 82, 51, 22]; var max = arr[0]; var min = arr[0]; for (var i = 1; i < arr.length; i++) { if (arr[i] > max) { max = arr[i]; } 阅读全文
摘要:
// 方法一 var arr1 = [2, 4, "a", "b", "c", 1, 2, 2, 5, "a", "b"]; function unique(arr) { var tempArr = []; for (var i = 0; i < arr1.length; i++) { if (!t 阅读全文
摘要:
var date1 = new Date(); //实例化现在的时间 var date2 = new Date('2020-12-30 20:36-58'); var dateDis = (date2 - date1) / 1000; //相差的总秒数 var days = parseInt(dat 阅读全文
摘要:
var arr = []; for (var i = 48; i <= 57; i++) { arr.push(String.fromCharCode(i)); } console.log(arr); for (var j = 65; j <= 90; j++) { arr.push(String. 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文