Discuss / JavaScript / 第二提,园面积

第二提,园面积

Topic source

wikinee

#1 Created at ... [Delete] [Delete and Lock User]

function area_of_circle(r, pi) { if(arguments.length===0){ alert('you must given a parameter'); }else if(typeof arguments[0]!=='number'){ alert('you paramenter not a number');
}else if (arguments.length===1){ return rr3.14; }else{ return rrpi; } }


  • 1

Reply