编辑下面的代码:【加编码】
<html> <body> <script> var str="Hello world!"; document.write(str.match("world") + "<br>"); document.write(str.match("World") + "<br>"); document.write(str.match("world!")); </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂