Created
October 11, 2014 07:08
-
-
Save elrrrrrrr/bbb438e0638d2052f701 to your computer and use it in GitHub Desktop.
node 继承标准写法
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
function Socket(options) { | |
// ... | |
stream.Stream.call(this); | |
// ... | |
} | |
util.inherits(Socket, stream.Stream); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment