<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>Document</title><style>span{margin: 15px;}</style></head><body><script>let a =1while(a <10){let b =1while(b <= a){
document.write(`<span>${b}*${a}=${a*b}</span>`)
b++}
a++
document.write(`<br>`)}</script></body></html>
遍历二维数组
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>Document</title></head><body><script>let student =[['nag','rrw','sing'],['xuhdhda',21,33]]for(let i in student){for(let j in student[i]){
console.log(student[i][j])}}</script></body></html>