(1)写法1 (function(){ //函数内容 })() (2)写法2 (function(){ //函数内容 }()) 转载于:https://www.cnblogs.com/clm960227/p/7605398.html