Merge pull request #1094 from ConradZhangcong/gh-pages

fix typo
This commit is contained in:
Ruan YiFeng
2021-11-22 15:50:37 +08:00
committed by GitHub
+2 -2
View File
@@ -443,8 +443,8 @@ str.replaceAll(regex, replacer)
```javascript
const str = 'hello';
str.at[1] // "e"
str.at[-1] // "o"
str.at(1) // "e"
str.at(-1) // "o"
```
如果参数位置超出了字符串范围,`at()`返回`undefined`