Created
April 2, 2014 00:33
-
-
Save need4spd/9925860 to your computer and use it in GitHub Desktop.
execfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
message: (function() { | |
var who = "me", what = "call"; | |
alert(1); | |
return what + " " + who; }()), | |
getMsg: function() { | |
return this.message; | |
} | |
}; | |
//o로드와 동시에 alert 실행 | |
o.getMsg(); //call me | |
o.message; //call me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment