第十一次作业

这个作业属于哪个课程 https://edu.cnblogs.com/campus/sdscfz/SF4
这个作业要求在哪里 https://edu.cnblogs.com/campus/sdscfz/SF4/homework/12964
这个作业的目标 第十一次作业
<!DOCTYPE html>
<html lang="en">
<head>
    <!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>自我介绍</title>
    <h2>2023年5月16号星期二上午十一点</h2>
    <script>
        function Stu(name, age, gender, hobby,time) {
          this.name = name;
          this.age = age;
          this.gender = gender;
          this.hobby = hobby;
          this.time = time;
          this.stu2 = function() {
            document.write("大家好,我叫" + this.name + ",今年" + this.age + "岁,是一位" + this.gender + ",我的爱好是" + this.hobby + "。" + "现在的时间是:" + this.time);
          }
        }
        var me = new Stu("刘浩龙", 19, "男", "打台球","2023年5月16号周二上午十一点");
        function stu1() {
            me.stu2();
        }
    </script>
</head>
<body>
    <button onclick="stu1()">显示自我介绍</button>
</body>
</html>
    </script>
</head>
<body>
  <script>

  </script>
</body>
</html>


posted @ 2023-05-16 11:07  刘浩龙  阅读(17)  评论(0编辑  收藏  举报