var str="g" var re=/^[0-9]*$/ var rd=/[0-9]*/ str.match(re) //null str.match(rd) //[""]为什么这两个正则匹配出来的结果不同,麻烦大神详细解释下,谢谢了!! 查看完整描述