(function f1() { var num = 10; window.num = num;})(); console.log(num);
js中调用函数中的变量
原文:https://www.cnblogs.com/leoych/p/14852957.html