Skip to content

Instantly share code, notes, and snippets.

@alanerzhao
Created November 5, 2013 14:59
Show Gist options
  • Save alanerzhao/7320318 to your computer and use it in GitHub Desktop.
Save alanerzhao/7320318 to your computer and use it in GitHub Desktop.
组合使用构造函数+原型
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