正则表达式修饰符“i”和“m”有什么区别。例子:
var str = "Visit W3Schools";
var patt1 = /w3schools/i;
document.write(str.match(patt1));
var str = "Visit W3Schools";
var patt1 = /w3schools/m;
document.write(str.match(patt1));
正则表达式修饰符“i”和“m”有什么区别。例子:
var str = "Visit W3Schools";
var patt1 = /w3schools/i;
document.write(str.match(patt1));
var str = "Visit W3Schools";
var patt1 = /w3schools/m;
document.write(str.match(patt1));