时间比较紧迫,就不说废话了,直接代码,记录一下自己遇到的问题解决代码:
1、将字符串中空格替换为换行符
代码如下
(item.next_track_time).replace(/\s+| /ig, '<br/>')
2、将html字段的字符串转换为html
代码如下:
<div v-else :class="item.class" v-html="scope.row[item.prop]">{{scope.row[item.prop]}}</div>
over