Skip to content

Commit 41f1b3d

Browse files
authored
feat: 优化 str.slice 和 str.substring 描述
1 parent 2f77d98 commit 41f1b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ JavaScript 中有三种获取字符串的方法:`substring`、`substr` 和 `sl
407407
```
408408

409409
`str.substring(start [, end])`
410-
: 返回字符串在 `start` `end` **之间** 的部分。
410+
: 返回字符串从 `start` 到(但不包括)`end` 的部分。
411411

412412
这与 `slice` 几乎相同,但它允许 `start` 大于 `end`。
413413

0 commit comments

Comments
 (0)