<script>
function Animal(name,age){
this.name=name;
this.age=age;
}
var that;
Animal.prototype.eat=function(){
console.log('我在吃午饭');
that=this;
}
var dog=new Animal('旺财',5)
dog.eat()
console.log(that===dog);
</script>