var z = 10; function foo(){ console.log(z) } (function (fn){ var z = 20; fn(); })(foo)為啥輸出的是10?
js輸出值問(wèn)題
冉冉說(shuō)
2018-10-10 16:14:52