1. (function(){ //do sth here var a,b; })(); 2.作用在于把函数表达式编程函数声明 !function(){ //do sth here var a,b }();