Created
January 3, 2019 07:29
-
-
Save xuyazhong/ad6ab36b5611bdb450dade2f11debd73 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// example | |
//a.js | |
// this.callback("abc") | |
Say(res) { | |
// this.callback = (result) => { | |
// console.log("result => ", result) | |
// } | |
this.callback = res; | |
// console.log("this.callback =>", this.callback) | |
// console.log("this.callback type =>", typeof(this.callback)) | |
} | |
b.js | |
// a.ShareInstance().Say((result) => { | |
// console.log("result => ", result); | |
// }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment