1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

docs(object): edit null 判断运算符

This commit is contained in:
ruanyf 2020-07-08 00:19:02 +08:00
parent d59b30173d
commit 4425866c10

View File

@ -896,7 +896,7 @@ function Component(props) {
} }
``` ```
上面代码判断`props`参数的`enabled`属性是否赋值,等同于下面的写法。 上面代码判断`props`参数的`enabled`属性是否赋值,基本等同于下面的写法。
```javascript ```javascript
function Component(props) { function Component(props) {