这是一道昨天的面试题:varnum=10;varobj={num:8,inner:{num:6,print:function(){console.log("num:"+num+",this.num:"+this.num);}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
varnum=10;varobj={num:8,inner:{num:6,print:function(){console.log("num:"+num+",this.num:"+this.num);}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
varobj={num:8,inner:{num:6,print:function(){console.log("num:"+num+",this.num:"+this.num);}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
num:8,inner:{num:6,print:function(){console.log("num:"+num+",this.num:"+this.num);}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
inner:{num:6,print:function(){console.log("num:"+num+",this.num:"+this.num);}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
num:6,print:function(){console.log("num:"+num+",this.num:"+this.num);}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
print:function(){console.log("num:"+num+",this.num:"+this.num);}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
console.log("num:"+num+",this.num:"+this.num);}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
}}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
}}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
}num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
num=888;下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
下面语句输出什么?obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
obj.inner.print();varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
varfn=obj.inner.print;fn();(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
(obj.inner.print)();(obj.inner.print=obj.inner.print)();感谢解答~
(obj.inner.print=obj.inner.print)();感谢解答~
感谢解答~
互换的青春
相关分类