(function(){}())和(function(){})()之间的任何不同

时间:2014-08-15 05:21:56

标签: javascript syntax

示例:

 var hello = (function(text) { 
     return "hello " + text
  }("world"))

并且

var hello = (function(text) { 
    return "hello " + text
})("world")

它们是一样的吗?

0 个答案:

没有答案