zoukankan      html  css  js  c++  java
  • 10-学习对象的好处

     1 <!DOCTYPE html>
     2 <html>
     3 <head lang="en">
     4     <meta charset="UTF-8">
     5     <title></title>
     6 </head>
     7 <body>
     8 
     9 <script>
    10 
    11     //1.生活中。(找对象)
    12     //2.编程中。(封装信息)
    13     function printStuInfo(name,age,address){
    14         console.log(name);
    15         console.log(age);
    16         console.log(address);
    17     }
    18 
    19 
    20     function printStuInfo(student){
    21         console.log(student.name);
    22         console.log(student.age);
    23         console.log(student.address);
    24     }
    25 
    26 
    27 </script>
    28 </body>
    29 </html>
  • 相关阅读:
    Vue过滤器使用
    vue基础
    lesson
    lesson
    lesson
    lesson
    rm 命令详解
    alias 命令详解
    cd 命令详解
    cut 命令详解
  • 原文地址:https://www.cnblogs.com/BingBing-Deng/p/10267003.html
Copyright © 2011-2022 走看看