代码如下:<script> function test(){ (function (){ for(var i=0;i<4;i++){ } })(); alert(i); } test();</script>
解决了吗
有问题继续交流