1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 10:22:23 +00:00

修正一处小地方

强迫症患者看着有点变扭。
This commit is contained in:
俩二蛋 2020-02-25 20:27:01 +08:00 committed by GitHub
parent 717f4e4218
commit 296159a4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]