Created
August 1, 2020 14:37
-
-
Save PKTseng/0ddda8b5d6de71c3e2fa110ebb904355 to your computer and use it in GitHub Desktop.
This file contains 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 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