es6常用的方法
摘要:
一、判断是否包含,当包含时返回true,不包含时返回false,代码实例如下: let string = "123345"; let substring1 = "12"; let substring2 = "01"; string.includes(substring1); //true strin 阅读全文
posted @ 2020-01-09 17:31 |小乌龟| 阅读(1467) 评论(0) 推荐(0)
posted @ 2020-01-09 17:31 |小乌龟| 阅读(1467) 评论(0) 推荐(0)
posted @ 2020-01-09 14:50 |小乌龟| 阅读(217) 评论(0) 推荐(0)