mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +00:00
修改string/startsWith的例子
This commit is contained in:
parent
4d044952dc
commit
93a5cdd882
@ -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
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user