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>

浙公网安备 33010602011771号