详解javascript函数写法大全 1.常规写法functionfnName(){console.log("常规写法");}2.匿名函数,函数保存到变量里varmyfn=function(){ javascript函数写法