1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-28 21:32:20 +00:00

修改string/startsWith的例子

This commit is contained in:
Ruan Yifeng 2015-01-16 08:01:55 +08:00
parent 4d044952dc
commit 93a5cdd882

View File

@ -289,9 +289,9 @@ s.includes("o") // true
var s = "Hello world!";
s.startsWith("o", 4) // true
s.endsWith("o", 8) // true
s.includes("o", 8) // false
s.startsWith("world", 6) // true
s.endsWith("Hello", 5) // true
s.includes("Hello", 6) // false
```