mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
修正一处小地方
强迫症患者看着有点变扭。
This commit is contained in:
parent
717f4e4218
commit
296159a4bc
@ -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