哪些因素會影響光學動作捕捉系統資料精度?
阿新 • • 發佈:2021-11-11
原型
//原型鏈 //Student.prototype //console.dir(stu.__proto__===Student.prototype) 1.//console.dir(Student.prototype.__proto__===people.prototype)//Student.prototype=now people //console.dir(stu.__proto__.__proto__===people.prototype)//原型鏈 //console.dir(people.__proto__.__proto__) console.dir(stu.__proto__.__proto__.__proto__.__proto__) //console.dir(stu.__proto__.__proto__.__proto__) // Student.prototype // people.prototype // Object.prototype // null 2. function people(name){//1 this.name=name; } people.prototype.showName=function(){ console.log(this.name); } function Student(){//2} Student.prototype=new people("zhanpeng");//Student.prototype賦值成new people
Student.prototype.study=function(){ console.log("學習");
} var stu=new Student();//找出特定的學生 // stu.study(); // stu.showName();