docs(let): 修正函数默认参数的死区问题

This commit is contained in:
兔哥
2016-05-04 14:02:22 +08:00
parent 6e8505bf8c
commit 71b13a4351
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ var s = '𠮷a';
for (let ch of s) {
console.log(ch.codePointAt(0).toString(16));
}
// "20bb7"
// ""
// 20bb7
// 61
```
`codePointAt`方法是测试一个字符由两个字节还是由四个字节组成的最简单方法。