Skip to content

Commit

Permalink
update: 将仓库语言识别为js
Browse files Browse the repository at this point in the history
  • Loading branch information
qianguyihao committed May 3, 2020
1 parent 10f420e commit 9c1007c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.php linguist-language=JavaScript
*.md linguist-language=JavaScript
14 changes: 14 additions & 0 deletions 05-JavaScript进阶/JavaScript开发积累.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,17 @@ if (result?.user?.name?.length) {



### 2020-04-28-字符串添加白名单

```js
if ('str1' == ('str1' || 'str2')){
console.log('smyhvae);
}
```

注意,上面的代码,根本就不会走 console.log语句,因为if里面的内容是false。





0 comments on commit 9c1007c

Please sign in to comment.