var name1 = {
hello : "This is hello.",
ff:{
hello: "zhangsan",
vv:function(fn){
console.log(this.hello);
fn.apply(this,Array.prototype.slice.call(arguments).slice(1))
},
dd:function(){
}
}
};
name1.ff.vv.call(name1,function(a,b,c){
console.log(c);
} , "1" ,"2","3");
//输出结果
//zhangsan
//3
hello : "This is hello.",
ff:{
hello: "zhangsan",
vv:function(fn){
console.log(this.hello);
fn.apply(this,Array.prototype.slice.call(arguments).slice(1))
},
dd:function(){
}
}
};
name1.ff.vv.call(name1,function(a,b,c){
console.log(c);
} , "1" ,"2","3");
//输出结果
//zhangsan
//3