[removed] why “this” inside the private function refers to the global scope?

后端 未结 4 1096
抹茶落季
抹茶落季 2020-12-08 22:08

Consider the following code:

function A() {}    

A.prototype.go = function() {
    console.log(this); //A { go=function()}

    var f = function() {
                


        
4条回答
提交回复
热议问题