mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
修改string/startsWith的例子
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user