下面的函数给出了应用return语句的例子:
function square(x){if(!(Lang.isFloat(x)))return invalid;return x*x};
本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)