<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="./作业6.js" >
// let str = [2,1,33,22,56,43,44 ]
// let max = str[0]
// for(let i =0 ;i<str.length;i++){
// if(str[i]>max){
// max = str[i]
// }
// }
// console.log(max)
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="./作业5.js">
// for (var i = 1; i <= 9; i++){
// for(var j = 1; j <= i; j++) {
// document.write(i +'*' + j + '=' + (i*j) +'     ')
// }
// document.write(`<br/>`)
// }
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=,, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
let a=+prompt('请输入秒数:')
function getTime(a) {
h = parseInt(a / 60 / 60 % 24)
m = parseInt(a / 60 % 60)
s = parseInt(a % 60)
h = h <10 ? '0' + h : h
m = m <10 ? '0' + m : m
s = s <10 ? '0' + s : s
return `${h}时${m}分${s}秒`
}
let b = getTime(a)
alert(b)
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
let students = [
{
name:'小明',
age:18,
gender:'男',
hometown:'河北省'
},
{
name:'小红',
age:19,
gender:'女',
hometown:'河南省'
},
{
name:'小刚',
age:17,
gender:'女男',
hometown:'山西省'
},
{
name:'小丽',
age:18,
gender:'女',
hometown:'山东省'
}
]
</script>
</body>
</html>