编辑下面的代码:【加编码】
<html> <body> <script> var str="Visit zqxt!"; var patt1=/zq/gi; if(patt1.multiline) { document.write("m modifier is set!"); } else { document.write("m modifier is not set!"); } </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂