日期:2014-05-16  浏览次数:20412 次

在javascript中如何实现this.max函数的调用?
  <SCRIPT LANGUAGE="JavaScript">
<!--
function People(h){
//类里面的变量
this.height = h;
//对象里的函数
this.max =function(a,b){
var c = a>b?a:b;
return c;
}
this.say=function(){
alert("saying!");
}
this.max=function(a,b,c){
var m=this.max(a,b);
var n=this.max(m,c);
return n
}
}

var people = new People(200);
peopel...

不知道下面如何写了。。。

小弟是刚开始学(参加培训,一点基础都没有)