阅读背景:

函数的作用是:每隔这么多字符给字符串添加换行符?

来源:互联网 

Rails 2.3.5

Rails 2.3.5

I need a temp work around for a script that only has 1 possible styling. Is there a simple way to loop through a string and add line breaks? Like at every 80th character insert a '\n'? (really looping through a record set and doing this to a text field).I need a temp work




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: