摘要: 字符串扩展 1.是否有某个字符 let str = 'http://127.0.0.1:3000/index.html'; console.log(str.includes('index'));//true console.log(str.includes('logo'));//false 2.是否 阅读全文
posted @ 2020-09-07 22:07 小不点灬 阅读(173) 评论(0) 推荐(0)