判断题

下列程序中可以将两个单词互换位置。var re =/(\w+)\s(\w+)/;var str ="John Smith";var newstr =str.replace(re,"$2,$1");

【参考答案】

正确