ruby字符串*替换 @article.mytitle.dup.tap{|p| b=@article.mytitle.length/3; p[b...b*2] = "*****"; } 阅读量: 780发布于: 2021-12-03修改于: 2021-12-03Rails Guide网站外链