js正则进行忽略大小写匹配

var word = /abc/i console.log(word.test('ABC')) // 结果为true
相关文章
相关标签/搜索