角度货币筛选器-添加了符号 [英] Angular Currency Filter - Symbol  added
本文介绍了角度货币筛选器-添加了符号Â的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用angular的货币过滤器,它似乎在输出一个额外的符号:Â.
I'm using angular's currency filter and it seems to be outputting an extra symbol: Â.
html:
{{totals.subtotal | currency}}
{{totals.tax | currency}}
{{totals.total | currency}}
该对象总计:
var totals = {subtotal: 500, tax: 65, total: 565};
输出:
Â$500.00
Â$65.00
Â$565.00
以前有人遇到过吗?我正在使用最新的角度1.0.6
Has anyone encountered this before? I'm using the latest angular 1.0.6
更新:事实证明,这是由于角度的缩小所致.当我包含非最小角度时,它就将其固定.
Update: It turns out the minification of angular caused this. When I included the non minified angular it fixed it.
推荐答案
是的,这证实是丑陋的.
Yeah confirmed that this is uglify.
如果使用ascii_only=true
选项进行构建,则似乎可以解决问题.
If you build it with the ascii_only=true
option then it seems to resolve the problem.
这篇关于角度货币筛选器-添加了符号Â的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文