mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
x 貌似没有用到
This commit is contained in:
+1
-1
@@ -313,7 +313,7 @@ foo() // ReferenceError: x is not defined
|
||||
```javascript
|
||||
let foo = 'outer';
|
||||
|
||||
function bar(func = x => foo) {
|
||||
function bar(func = () => foo) {
|
||||
let foo = 'inner';
|
||||
console.log(func());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user