事情的起因事我想在这个里面美化json,但v-model传过来的事字符串,没办法,只能硬着头皮干了,解决方案在字符串中间加上\n就可以了。 后台代码this.$set(this.xxx, ‘xxxx’, ‘{\n “message”: “”\n}’);