该文被密码保护。 阅读全文
posted @ 2021-04-12 22:53
star-meteor
阅读(12)
评论(0)
推荐(0)
摘要:
用来确定一个字符串是否包含在另一个字符串中 原来,JavaScript 只有indexOf方法 返回index ES6 又提供了三种新方法includes(), startsWith(), endsWith()返回布尔值,但是使用第二个参数n时,endsWith的行为与其他两个方法有所不同。它针对前 阅读全文
posted @ 2021-04-12 14:27
star-meteor
阅读(99)
评论(0)
推荐(0)

浙公网安备 33010602011771号