JS的三种函数声明方式 2019-12-11 本文已影响0人 _oop 1.函数声明 function fun(){} 2.表达式声明 var fn=function(){} 3.构造器声明 var fn=new Function()