Why do I get the value “result” for this closure?

后端 未结 3 1233
迷失自我
迷失自我 2020-12-20 02:42

Let\'s say I have this code (fiddle) intended to memoize modules:

var chat = {
 // Create this closure to contain the cached modules
 module: function() {
           


        
3条回答
  •  甜味超标
    2020-12-20 03:19

    Just for reference... "result" in this example, is the name (or better say the ID) of the lower right window (div/iframe) in JsFiddle...

    So as @Rocket & @Bergi already says... you are getting the "window.name"

提交回复
热议问题