if(arr1 instanceof Array&&arr2 instanceof Array){
if(arr1.length==arr2.length){
var a1=[]; var b1=[];
for(i in arr1){a1.push(Object.prototype.toString.apply(arr1[i]))}
for(i in arr2){b1.push(Object.prototype.toString.apply(arr2[i]))}
if(arr1.length==arr2.length){
var a1=[]; var b1=[];
for(i in arr1){a1.push(Object.prototype.toString.apply(arr1[i]))}
for(i in arr2){b1.push(Object.prototype.toString.apply(arr2[i]))}
已采纳回答 / 慕粉丹哥
只是让Student继承Person,让其拥有Person的方法,同时又拥有自己的私有方法。直接new Person(),将不会拥有Student里面的方法,如Student.learn()
2017-03-06