<script type="text/javascript">
var str = "Visit W3School";
var patt1 = new RegExp("W3School");
var result=patt1.test(str);
document.write("Result:"+result);
</script>
添加回答
举报
0/150
提交
取消