mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
edit generator
This commit is contained in:
@@ -75,6 +75,8 @@ b // 2
|
||||
d // 4
|
||||
```
|
||||
|
||||
上面代码的两个例子,都属于不完全解构,但是可以成功。
|
||||
|
||||
如果对undefined或null进行解构,会报错。
|
||||
|
||||
```javascript
|
||||
|
||||
Reference in New Issue
Block a user