var matches = /(hello S+)/.exec('This is a hello world!');console.log(matches[0]);為什么結(jié)果是 hello world ! 我的理解是出 hello 's'代表空格 ’+’代表一個或多個 不是嗎
exec 看了半天沒看懂
蝴蝶刀刀
2018-12-13 14:22:00