为什么匿名函数在其语句中比在调用中有更多的参数

why makes anonymous function have more arguments in its statement then in the invocation

(function(i, s, o, g, r, a, m) {
      i['GoogleAnalyticsObject'] = r;
      i[r] = i[r] || function() {
          (i[r].q = i[r].q || []).push(arguments)
      }, i[r].l = 1 * new Date();
      a = s.createElement(o),
          m = s.getElementsByTagName(o)[0];
      a.async = 1;
      a.src = g;
      m.parentNode.insertBefore(a, m)
  })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');

  ga('create', 'UA-28239486-5', 'auto');
  ga('send', 'pageview');

这是 Google 分析脚本。匿名函数中有7个参数,调用时只有5个,为什么代码会把am作为参数呢?我认为在函数体中执行 var avar m 没有区别。

当您试图使文件尽可能小时,您会寻找减少字符数的方法。是的,他们可以使用 var,但这也会在代码的大小上增加 5 个字符。

var a, m;
1234    5