vue使用“-”分割字符串

<dd>{{userData.departmentName.replace(new RegExp(",","g"),'-')}}</dd>
原文地址:https://www.cnblogs.com/cyqdeshenluo/p/12133401.html