File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2301,11 +2301,13 @@ function combine(a, b) {
2301
2301
```
2302
2302
** [ ⬆ 返回顶部] ( #代码整洁的-javascript ) **
2303
2303
2304
- ### Avoid positional markers
2304
+ ### 避免占位符
2305
2305
They usually just add noise. Let the functions and variable names along with the
2306
2306
proper indentation and formatting give the visual structure to your code.
2307
2307
2308
- ** Bad:**
2308
+ 它们仅仅添加了干扰。 让函数和变量名称与合适的缩进和格式化为你的代码提供视觉结构。
2309
+
2310
+ ** 不好的:**
2309
2311
``` javascript
2310
2312
// //////////////////////////////////////////////////////////////////////////////
2311
2313
// Scope Model Instantiation
@@ -2323,7 +2325,7 @@ const actions = function() {
2323
2325
};
2324
2326
```
2325
2327
2326
- ** Good ** :
2328
+ ** 好的: **
2327
2329
``` javascript
2328
2330
$scope .model = {
2329
2331
menu: ' foo' ,
You can’t perform that action at this time.
0 commit comments