From 988364563937961a3108c6ffb65c76a3894c43b0 Mon Sep 17 00:00:00 2001 From: UFOwl Date: Sat, 28 May 2016 21:54:57 +0800 Subject: [PATCH] Update string.md --- docs/string.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/string.md b/docs/string.md index 6c2c4fd..685a53f 100644 --- a/docs/string.md +++ b/docs/string.md @@ -133,7 +133,7 @@ String.fromCodePoint(0x78, 0x1f680, 0x79) === 'x\uD83D\uDE80y' // true ``` -上面代码中,如果`String.fromCharCode`方法有多个参数,则它们会被合并成一个字符串返回。 +上面代码中,如果`String.fromCodePoint`方法有多个参数,则它们会被合并成一个字符串返回。 注意,`fromCodePoint`方法定义在`String`对象上,而`codePointAt`方法定义在字符串的实例对象上。