JS
this.descList = this.desc.split(/[。]/).filter(m => m !== '');
复制代码
HTML
<p class='padding' v-for="(item,index) in descList" :key="index">
{{item}}
</p>
复制代码
多个标签以逗号分割为标签(两种逗号)
let tabList = this.tabDesc.split(/[,,]/).filter(m => m !== '');
复制代码