摘要: 字符串在ES6新增的方法 includes(),判断字符串中,是否包含指定的字符串,第一个参数表示指定的字符串,第二个参数表示从什么位置开始(默认为0) const str = "hello world !!!"; console.log(str.includes("h"));//true cons 阅读全文
posted @ 2023-12-08 19:04 波波波维奇~ 阅读(10) 评论(0) 推荐(0)