Skip to content

Instantly share code, notes, and snippets.

@PKTseng PKTseng/index.js

Created Aug 1, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.