Created
November 5, 2013 14:59
-
-
Save alanerzhao/7320318 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
function Funname () { | |
this.param = param; | |
this.arr = [1,2]; | |
} | |
Funname.prototype = { | |
constuctor: Funname, | |
method : function () { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment