function fun_1(){ this.name = "jiao"; } function fun_2(){ this.age = 99; } fun_2.prototype = new fun_1(); var obj = new fun_1(); alert(obj.age);
请问代码中fun_1继承了fun_2还是fun_2继承了fun_1?如何判断?
夺命小书生
橙映空
慕的地6079101
相关分类