单项选择题
下面这段JavaScript代码的的输出是什么?()var myObject = { foo: "bar", func: function() { var self = this; console.log(this.foo); console.log(self.foo); (function() { console.log(this.foo); console.log(self.foo); }()); }};myObject.func();
A.barbarbarbar
B.barbarbarundefined
C.barbarundefinedbar
D.undefinedbarundefinedbar
点击查看答案&解析
相关考题
