总是会有这样的报错,请老师解答下原因
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
<title>test</title>
</head>
<body>
<script>
var Student=function(name,sex,age){
this.name=name;
this.sex=sex;
this.age=age;
}
var student=new Student('小明','男','12');
console.log(student.name);
console.log(student.sex);
console.log(student.age);
</script>
</body>
</html>
20
收起
正在回答 回答被采纳积分+1
2回答
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星