//简单的类的设计模式
//定义一个类class1
function class1() {
//构造函数
}

//通过指定prototype对象来实现类的成员定义
class1.prototype = {
someProperty:"simple",
someMethod:function {
//方法代码
},
//其实属性和方法
}
在一个类的成员之间互相引用,必须通过this指针来进行。因为在JavaScript中第个属性和方法都是独立的,它们通过this指针联系在一个对象上。 
//定义一个类class1























































通过createFunction封装,就可以用一种通用的方案实现参数传递。









































