mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
typo
typo
This commit is contained in:
parent
e2867f1956
commit
0cc0ce06bb
@ -196,7 +196,7 @@ function getComplement(color) {
|
||||
|
||||
## 实例:消除魔术字符串
|
||||
|
||||
魔术字符串指的是,在代码之中多次出现、与代码形成强耦合的某一个具体的字符串或者数值。风格良好的代码,应该尽量消除魔术字符串,该由含义清晰的变量代替。
|
||||
魔术字符串指的是,在代码之中多次出现、与代码形成强耦合的某一个具体的字符串或者数值。风格良好的代码,应该尽量消除魔术字符串,改由含义清晰的变量代替。
|
||||
|
||||
```javascript
|
||||
function getArea(shape, options) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user