Skip to content

Instantly share code, notes, and snippets.

@PKTseng
Created August 1, 2020 14:37
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 PKTseng/0ddda8b5d6de71c3e2fa110ebb904355 to your computer and use it in GitHub Desktop.
Save PKTseng/0ddda8b5d6de71c3e2fa110ebb904355 to your computer and use it in GitHub Desktop.
var myName = '驚不驚喜';
function callName() {
 console.log(this,this.myName);
}
var family = {
 myName: '來因',
 callName: function () {
 console.log(this, this.myName);
 }
}
// family.callName();
var callName = family.callName;
callName()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment