javascript闭包传参就这么简单

var query = (function (a) {
return a;
})('fx');
alert(query);

原文地址:https://www.cnblogs.com/fx2008/p/4226761.html