<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<script>

    //1.生活中。(找对象)
    //2.编程中。(封装信息)
    function printStuInfo(name,age,address){
        console.log(name);
        console.log(age);
        console.log(address);
    }


    function printStuInfo(student){
        console.log(student.name);
        console.log(student.age);
        console.log(student.address);
    }


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

  

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2021-08-08
  • 2022-12-23
  • 2021-08-13
  • 2021-09-04
  • 2021-07-20
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2021-08-30
  • 2021-07-31
相关资源
相似解决方案