var name = "The Window"; var object = { name : "My Object", getNameFunc : function(){ return function(){ return this.name; }; } }; alert(object.getNameFunc()());//The window
作者: Freya0_0
链接:http://www.imooc.com/article/14794
来源:慕课网
慕的地6079101
慕桂英2348745
相关分类