函数定义的四种方法

  1. 声明式定义 function fn(){}
  2. 表达式式定义   var an=function(){}  匿名函数 

原文地址:https://www.cnblogs.com/lxlym/p/9816864.html