mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
commit
595ea3f68c
@ -1166,7 +1166,7 @@ let runtimeError = {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
如果扩展运算符的参数是`null`或`undefined`,这个两个值会被忽略,不会报错。
|
如果扩展运算符的参数是`null`或`undefined`,这两个值会被忽略,不会报错。
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
let emptyObject = { ...null, ...undefined }; // 不报错
|
let emptyObject = { ...null, ...undefined }; // 不报错
|
||||||
|
Loading…
x
Reference in New Issue
Block a user