我有一种货币功能,我总是在这样的Vue刀片中使用
<td>{{ price | currency}}</td>
,将显示如下内容:
Rp. 5.000.000
现在我使用jspdf导出价格,但我不知道如何使用这种货币
let totals = this.datatotal
......
doc.text(String(totals), 102, finalY + 75) // it will be showing 5000000 but i need 5.000.000
我尝试
doc.text(String(totals | currency), 102, finalY + 75) //
但出现错误 ReferenceError:未定义货币”
有人可以帮忙吗?