Anonymous function in JavaScript

常见的写法:

1
2
3
(function(){
// do something magic...
})();

JSLint 建议的写法:

1
2
3
(function(){
// do something magic...
}());
0%