Skip to content

Commit

Permalink
Update 2016-02-04-assignment-shorthands.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangpenglin committed Feb 22, 2016
1 parent f8da0b5 commit 713fe6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/zh_CN/2016-02-04-assignment-shorthands.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (variable1 !== null || variable1 !== undefined || variable1 !== '') {
````javascript
var variable2 = variable1 || '';
````
P.S.:如果`variable1`是一个数组,则先检查他是否为0。
P.S.:如果`variable1`是一个数字,则先检查他是否为0。

### 对象数组表示法

Expand Down

0 comments on commit 713fe6f

Please sign in to comment.