我有一个长字符串,看起来像
var myString = "Bob is the best person in the world MAN John is the best person in the world MAN Peter likes to pick apples daily MAN Fred loves to eat bananas MAN"
我想做的是在每个之后插入一个新行MAN
- 这样我基本上得到了
Bob is the best person in the world MAN
John is the best person in the world MAN
Peter likes to pick apples daily MAN
Fred loves to eat bananas MAN
我该怎么做呢?