javascript - 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(); = 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');
this google analytics script. in anonymous function, there 7 arguments, when being invoked, there 5. why code make a
, m
arguments? see no difference in doing var a
, var m
in function body.
when trying make file small possible, ways reduce number of characters. yes can use var, adds 5 more characters size of code.
var a, m; 1234 5
Comments
Post a Comment