摘要: html版本: <script> let foo = 'outer'; function bar(func = () => foo) { let foo = 'inner'; console.log("我是html:"+func()); } bar(); // outer </script> 我的理 阅读全文