函数的定义

67 阅读1分钟

1.函数声明 function([形参1, 形参2, ...形参N]){ 语句 }

2.函数表达式 var 函数名 = function([形参1, 形参2, ...形参N]){ 语句 }