<!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>

  

相关文章:

  • 2021-07-07
  • 2021-09-02
  • 2021-07-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
猜你喜欢
  • 2022-02-02
  • 2022-01-07
  • 2021-08-31
  • 2021-09-13
  • 2022-01-29
  • 2022-12-23
  • 2021-07-04
相关资源
相似解决方案