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);
}

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2021-10-24
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-01-31
  • 2021-12-17
  • 2021-11-15
  • 2022-12-23
相关资源
相似解决方案