摘要:
let a = [true, false, true, false, false, true, true] let b = [false, true, false, false] let d = [] let e = 0 for (var i = 0; i < a.length; i++) { le 阅读全文
摘要:
使用 math 语法 let Math = 3.5114 document.write(Math.toFixed(2)) 其他语法使用 阅读全文
摘要:
<script> for (var i = 1; i <= 9; i++) { //外层循环控制行 document.write("<tr>"); for (var j = 1; j <= i; j++) //内层循环控制列 { document.write("  " 阅读全文
摘要:
let arr = [11, 45, 87, 10, 99, 5, 22, 7, 77, 88, 100, 13]; let arr1 = [] let max = 0; for (let i = 0; i < arr.length; i++) { // arr的每一个数组除以2余数是0 if (a 阅读全文
摘要:
let a = [1, 45, 5, 4, 78, 48, 78, 98, 7, 120] let b = [10, 41, 57, 4, 81, 48, 98, 58, 7, 120] let c = [] let max = 0 // 设置for循环 循环 a 数组的每一位 for (let i 阅读全文
摘要:
1.暴力破解 var nums = [1, 3, 7, 6, 9, 11]; var target = 9; var o = [] for (let i = 0; i < nums.length; i++) { for (let j = 0; j < nums.length; j++) { let 阅读全文