Created
February 12, 2016 06:47
-
-
Save suzukimilanpaak/4fe1d24fe318e05a4d78 to your computer and use it in GitHub Desktop.
bindの動作
This file contains hidden or 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 classExample = { | |
binded: function(){ console.info(this) }.bind(this), | |
unBinded: function(){ console.info(this) } | |
} | |
classExample.binded(); | |
// => Window {external: Object, chrome: Object, document: document, React: Object, ReactDOM: Object…} | |
classExample.unBinded(); | |
// => Object { binded: function(){ console.info(this) }.bind(this), unBinded: function(){ console.info(this) }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment