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: callName
}
family.callName();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment