<script>var str="Give 100%!";
var patt1=/\w/;document.write(str.match(patt1));</script>這里換成var patt1=new RegExg("\w");為什么會(huì)輸出null
正則表達(dá)式的構(gòu)造函數(shù)
長(zhǎng)風(fēng)秋雁
2018-09-08 06:08:25