function exchangeWord()
{
var s="I will exchange the first and the second word, look!";
var reg=/(S+)(s+)(S+);
alert(s.replace(reg,"$3$2$1"));
}
交换字符串中单词位置
function exchangeWord()
{
var s="I will exchange the first and the second word, look!";
var reg=/(S+)(s+)(S+);
alert(s.replace(reg,"$3$2$1"));
}
841

被折叠的 条评论
为什么被折叠?