语法:
function 函数名(形参:数据类型):函数返回值类型{ //函数体 }
例子
function Compare(FirstNum:Number, Second:Number):Number { return First>Second ? First : Second; }