JS 中 this 与闭包的结合产生的问题
摘要:代码片段一: var name = "The Window"; var object = { name : "My Object", getNameFunc : function(){ return function(){ return this.name; }; } }; alert(object.getNameFunc()());代码片段二: var name = "The Window"; var object = { name : "My Object", getNameFunc : function(){
        阅读全文
            
                posted @ 2013-08-17 15:52
 
                    
                 浙公网安备 33010602011771号
浙公网安备 33010602011771号