使用prototype原型模式复用方法,避免为每个对象重复创建方法 ``` js var YourClaassName = { this.x = 1; ... } YourClaassName.prototype.methodName = { // your code } ```