replace() 所有单词首字母大写
function ReplaceDemo()
{
var r,re;
var s="The quick brown fox jumpe dover the lazy yellow dog.";
re=/\b\w+\b/g;
r=s.replace(re,function(ww){
return "("+ww.slice(0,1).toUpperCase()+ww.slice(1)+")";
}
);
return(r);
}