<script>var str="Give 100%!"; var patt1=/\w/;document.write(str.match(patt1));</script>
这里换成
var patt1=new RegExg("\w");
为什么会输出null
慕盖茨4494581
相关分类