【ES6】includes(), startsWith(), endsWith()
时间:
2017-11-07 19:16:38
阅读:
460
评论:
收藏:
0
[点我收藏+]
- includes():返回布尔值,表示是否找到了参数字符串。
- startsWith():返回布尔值,表示参数字符串是否在原字符串的头部。
- endsWith():返回布尔值,表示参数字符串是否在原字符串的尾部。
支持第二个参数,表示开始搜索的位置。
【ES6】includes(), startsWith(), endsWith()
原文:http://www.cnblogs.com/likwin/p/7800409.html