首页 > 其他 > 详细

11-什么是对象

时间:2017-03-19 14:14:25      阅读:118      评论:0      收藏:0      [点我收藏+]
<!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>

  

11-什么是对象

原文:http://www.cnblogs.com/sj1988/p/6579936.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!