split('\n') 使用split('\n')将字符串分割成数组就行 如果我们在vue中,只需要在页面中绑定变量时操作split('\n')就可以了: <p v-for="_item in item.question.split('\n')">{{_item}}</p>