九州体育网 - 十年信誉网站

关于作者

Discuss / JavaScript / 圆的面积

圆的面积

Topic source

从未挣脱43268

#1 Created at ...

思路一: if(pi===undefined){pi=3.14;} var s=pirr;

return s;

思路二: if(arguments.length<2){pi=3.14} var s=pirr;

return s;

从未挣脱43268

#2 Created at ...

思路一改进: if(!pi){pi=3.14;} var s=pirr; return s;


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.