mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
commit
2e1c10776a
@ -197,7 +197,7 @@ function f(x = 1, y) {
|
||||
}
|
||||
|
||||
f() // [1, undefined]
|
||||
f(2) // [2, undefined])
|
||||
f(2) // [2, undefined]
|
||||
f(, 1) // 报错
|
||||
f(undefined, 1) // [1, 1]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user