 
                        var test = (function(i){return function(){
        alert(i*2);
    }}(2));
    test(5)
    //我的理解,这个test(5)的实参没有传进去啊,这是为什么Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这么跟你说吧,外面的function后面不是有个(2)吗,那是立即执行了外面的函数并将参数i=2代入。也就是说test=function(){alert(2*2)}压根就没有参数
返回的函数没带参,怎么传的进去。