参考链接:
this.DIR = require('@/assets/imgs/')
var test = 'uuu' + this.DIR + '<br>' + this.DIR + '\n' + this.DIR
document.getElementsByClassName('vis-tooltip')[0].innerHTML = test1. \n 直接换行
字符串值为:
this.example = [
{
a: 'IT生产系统环境',
b:'1、XX系统发生故障,引致核心业务无法持续运作,预计在1小时内无法恢复;\n2、网络系统故障造成70%以上分支机构无法正常处理,预计1小时内无法恢复; \n3、其他;'
}
]样式设置:
.dialog { white-space: pre;}显示:
注意样式的设置。