摘要:
<html><body><script type="text/javascript">var patt1=new RegExp("e");document.write(patt1.test("The best things in life are free"));patt1.compile("d");document.write(patt1.test("The best things in life are free"));</script>< 阅读全文
摘要:
<html><body><script type="text/javascript">var patt1=new RegExp("e","g");do{result=patt1.exec("The best things in life are free");document.write(result);}while (result!=null) </script></body></html>向 RegExp 对象添加第二个参数,以设定检索。例 阅读全文
摘要:
<html><head><script type="text/javascript">var txt=""function message(){try { adddlert("Welcome guest!") }catch(err) { txt="There was an error on this page.\n\n" txt+="Click OK to continue viewing this page,\n" txt+="or Cancel 阅读全文