摘要: var str = "hello world ! hello coder!" ; //查找‘HELLO’是否存在,找不到返回null var reg = new RegExp('HELLO','i') ; var isHas = str.match(reg); console.log(isHas); 阅读全文
posted @ 2023-04-14 14:54 黑白棋学弟 阅读(21) 评论(0) 推荐(0) 编辑