you have a string "This is a test that has to be done using Javascript".Split into multiple lines of text without hyphenating words from right to left where the maximum length of the line is 20 characters(you can break only between words and the next line can't start with a space)
您有一个字符串“This is a test that has to be done using Javascript“。将文本分成多行,不从右到左连字符,其中行的最大长度为20个字符(只能在单词之间断开,下一行不能以空格开头)
"using Javascript
that has to be done
This is a test"
全部评论
(0) 回帖