Created
January 29, 2013 09:23
-
-
Save brothertao/4662964 to your computer and use it in GitHub Desktop.
有关javascript的this
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 a = { | |
b:function() { console.log(this); } | |
} | |
//求下面的输出 | |
a.b(); | |
c = a.b(); | |
(1, a.b)(); | |
(a.b)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment