目的

在vue中输出字符串的时候,想要带有换行显示

实现

let that = res.data[0]
this.deviceinfo = "使用人: " + that.user + '</br>' +
            "类型: " + that.device_type + "</br>" +
            "登记时间: " + that.signin_time.replace("T", " ") + ""
document.querySelector('.el-popover').innerHTML = this.deviceinfo