From bf08c56051997ea1f6e703a2165797dac87ad2fb Mon Sep 17 00:00:00 2001 From: "Yuanzhi.Peng" Date: Tue, 22 Aug 2017 15:26:06 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E6=BA=90=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=20to=20=E5=8E=9F=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/string.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/string.md b/docs/string.md index fd9d33b..e2c6581 100644 --- a/docs/string.md +++ b/docs/string.md @@ -232,8 +232,8 @@ ES6 提供字符串实例的`normalize()`方法,用来将字符的不同表示 传统上,JavaScript只有`indexOf`方法,可以用来确定一个字符串是否包含在另一个字符串中。ES6又提供了三种新方法。 - **includes()**:返回布尔值,表示是否找到了参数字符串。 -- **startsWith()**:返回布尔值,表示参数字符串是否在源字符串的头部。 -- **endsWith()**:返回布尔值,表示参数字符串是否在源字符串的尾部。 +- **startsWith()**:返回布尔值,表示参数字符串是否在原字符串的头部。 +- **endsWith()**:返回布尔值,表示参数字符串是否在原字符串的尾部。 ```javascript var s = 'Hello world!';