Skip to content

Instantly share code, notes, and snippets.

@fuchao2012
Created May 21, 2015 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fuchao2012/1da67034a1bea23e6be3 to your computer and use it in GitHub Desktop.
Save fuchao2012/1da67034a1bea23e6be3 to your computer and use it in GitHub Desktop.
var length =10;
function fuchao(){
console.log(this);
console.log(this.length)
}
var obj={
length:5,
method:function(fuchao){
console.log(this);
fuchao();
arguments[0]();
}
}
//there kind of "this" and
//can you tell the output?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment