function createFn(name){ this.name = name ; } createFn.prototype.study = function(){ return this.name+"在学习";; } var createFn2 = new createFn("tom"); alert(createFn2.study());//方法调用需要加括号。