<script>
alert("haha");
document.write("haha");
function fun(){
console.log(" i am console");
}
fun();
function fun1(name ,age,sex) {
this.name=name;
this.age=age;
this.sex=sex;
this.sayName=fun11;//为什么这里调用函数名的时候不用打括号
}
function fun11(){<
console.log("hello,i am "+this.name);
}
var obj=new fun1('tmk',12,'man');
obj.sayName();
console.log(obj instanceof fun1);
</script>
直接的回答:
根本的问题:
14行 ‘<’ ?