Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用角度 6。我想以逗号分隔的数量显示一个数值。
即数量 123456 或 7456 为 123,456 和 7,456 角度使用管道或其他更好的方式?
我想我成功了。我用 {{ val | 数字}}
谢谢
{{val | number}}
以上转换如预期。例如。123456 或 7456 作为 123,456 和 7,456