Created
December 3, 2015 06:58
-
-
Save urstory/3bd6c197ff003ee18834 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
A를 상속받는 B | |
function A{ | |
this.a = function(){} | |
} | |
function B{ | |
this.base = A; | |
this.base(length, length); | |
} | |
B.prototype = A.prototype; | |
B.prototype.constructor = B; | |
var b = new B(); | |
b.a(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment