Parenthesis for anonymous JavaScript functions

后端 未结 3 1326
忘掉有多难
忘掉有多难 2020-12-20 23:45

Are they the same?

var multiply = function () {
      //..
      }();

var multiply1 = (function () {
      //..
      }());
3条回答
提交回复
热议问题