第十一次作业
| 这个作业属于哪个课程 | https://edu.cnblogs.com/campus/sdscfz/SF3/ |
|---|---|
| 这个作业要求在哪里 | https://edu.cnblogs.com/campus/sdscfz/SF3/homework/12975 |
| 这个作业的目标 | 第十一次作业 |
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>srx</title>
</head>
<body>
<button ondblclick="document.write(student1.name+' '+' '+student1.age+' '+' '+student1.sex+' '+' '+student1.hobby+'<br>'+str)">按钮</button>
<script>
function Stu(name,age,sex,hobby){
this.name = name;
this.age = age;
this.sex = sex;
this.hobby = hobby;
}
var now = new Date()
var str =
now.toLocaleDateString()+' ' +
now.toLocaleTimeString();
var student1 = new Stu('孙瑞雪',20,'女','书法');
</script>
</body>
</html>



浙公网安备 33010602011771号