function sum(...rest) { var i=1,he=0; for(i=1;i<rest.length,i++) he=he+rest[i]; alert(he); }
第二题
if(r==0){ return 0; }else{ return pi(rr); }
第三题
if (a > b) { return a; } else { return b; }
这三个题不晓得对不对,请大师指点
Sign in to make a reply
小_飞_燕
function sum(...rest) { var i=1,he=0; for(i=1;i<rest.length,i++) he=he+rest[i]; alert(he); }