JavaScript 中的双括号()()

function foo()
{
    alert("cftea");
}
foo();
 
(function()
{
    alert("cftea");
})();
 
(function()
{
    alert("cftea");
}());
 
void function()
{
    alert("cftea");
}()

posted @ 2011-03-29 15:22  莫忆往西  阅读(290)  评论(0编辑  收藏  举报