公告
财富商城
积分规则
提问
发文
2020-03-03 08:47发布
Anthone
What HTML tag represents the symbol for Chinese currency?
Or is there such a tag?
I'm guessing you mean HTML entity for ¥:
¥
Handy reference
Wikipedia:
Shop prices in mainland China and Taiwan are usually marked with 元 after the digits. In mainland China, using '¥' as well as RMB to denote the currency is common.
And here's the link on how to get the ¥ character in unicode or with HTML entities.
The symbol they use is Unicode & # 5 1 4 3 ; which is suffixed, not prefixed, to the amount e.g. 100元
The Chinese use the Renminbi, sometimes denoted as RMB. It's also called the Yuan.
You can do it with Intl.NumberFormat.
var number = 12.80; console.log(new Intl.NumberFormat('zh-CN', { style: 'currency', currency: 'CNY' }).format(number));
I think you possibly want CNY (ie. Chinese yuan). Also sometimes known as RMB.
http://en.wikipedia.org/wiki/Renminbi
最多设置5个标签!
I'm guessing you mean HTML entity for ¥:
Handy reference
Wikipedia:
And here's the link on how to get the ¥ character in unicode or with HTML entities.
The symbol they use is Unicode & # 5 1 4 3 ; which is suffixed, not prefixed, to the amount e.g. 100元
The Chinese use the Renminbi, sometimes denoted as RMB. It's also called the Yuan.
You can do it with Intl.NumberFormat.
I think you possibly want CNY (ie. Chinese yuan). Also sometimes known as RMB.
http://en.wikipedia.org/wiki/Renminbi