03 2021 档案
摘要:// // 0-n之间的随机数 // function rand(n) { // return parseInt(Math.random() * n); // } // // 2 求数组中所有元素的和(addAllInArray) // // 思考: 需要参数和返回值 // function add
阅读全文
摘要:// // 0-n之间的随机数 // function rand(n) { // return parseInt(Math.random() * n); // } // // 2 求数组中所有元素的和(addAllInArray) // // 思考: 需要参数和返回值 // function add
阅读全文
摘要:<script> // 生成四位随机数 function generateMixed(n) { var chars = [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文
摘要:<script> //封装一个添加数组对象的功能函数,arr表示数组,number表示要往里面添加的数据可以是数字也可以是字符串 function push(arr,number){ var arr=[1,2,3]; arr[arr.length]=number; return arr; } con
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文