File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2079,12 +2079,15 @@ for some guidance.
2079
2079
2080
2080
针对自动格式化工具不能涵盖的问题(缩进、 制表符还是空格、 双引号还是单引号等), 这里有一些指南。
2081
2081
2082
- ### Use consistent capitalization
2082
+ ### 使用一致的大小写
2083
2083
JavaScript is untyped, so capitalization tells you a lot about your variables,
2084
2084
functions, etc. These rules are subjective, so your team can choose whatever
2085
2085
they want. The point is, no matter what you all choose, just be consistent.
2086
2086
2087
- ** Bad:**
2087
+ JavaScript 是无类型的, 所以大小写告诉你关于你的变量、 函数等的很多事情。 这些规则是主观的,
2088
+ 所以你的团队可以选择他们想要的。 重点是, 不管你们选择了什么, 要保持一致。
2089
+
2090
+ ** 不好的:**
2088
2091
``` javascript
2089
2092
const DAYS_IN_WEEK = 7 ;
2090
2093
const daysInMonth = 30 ;
@@ -2099,7 +2102,7 @@ class animal {}
2099
2102
class Alpaca {}
2100
2103
```
2101
2104
2102
- ** Good ** :
2105
+ ** 好的: **
2103
2106
``` javascript
2104
2107
const DAYS_IN_WEEK = 7 ;
2105
2108
const DAYS_IN_MONTH = 30 ;
You can’t perform that action at this time.
0 commit comments