04-类

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
//    class Customer {
//        //属性
//        public String Name;
//        public String Age;
//        public String Money;
//        //方法
//        public void Buy (String id,int num,double price) {
//            self.money -= num * price;
//            //记录订单
//        }
//    }
//
//
//    var aaa = new Customer("name",18....);

//js中new可以穿件function产生的对应,并不是用class.
//    function Stu(){
//
//    }


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

  

posted @ 2017-03-19 11:25  北漂阿猫  阅读(108)  评论(0)    收藏  举报