试题详情

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(); 程序的输出是什么?

Abar bar bar bar

Bbar bar bar undefined

Cbar bar undefined bar

Dundefined bar undefined bar