What's the HTML tag for the “Chinese dollar” c

2020-03-03 08:47发布

What HTML tag represents the symbol for Chinese currency?

Or is there such a tag?

6条回答
欢心
2楼-- · 2020-03-03 09:14

I'm guessing you mean HTML entity for ¥:

¥

Handy reference

查看更多
唯我独甜
3楼-- · 2020-03-03 09:23

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.

查看更多
▲ chillily
4楼-- · 2020-03-03 09:25

The symbol they use is Unicode & # 5 1 4 3 ; which is suffixed, not prefixed, to the amount e.g. 100元

查看更多
做自己的国王
5楼-- · 2020-03-03 09:26

The Chinese use the Renminbi, sometimes denoted as RMB. It's also called the Yuan.

查看更多
姐就是有狂的资本
6楼-- · 2020-03-03 09:29

You can do it with Intl.NumberFormat.

var number = 12.80;
console.log(new Intl.NumberFormat('zh-CN', {
  style: 'currency',
  currency: 'CNY'
}).format(number));

查看更多
\"骚年 ilove
7楼-- · 2020-03-03 09:36

I think you possibly want CNY (ie. Chinese yuan). Also sometimes known as RMB.

http://en.wikipedia.org/wiki/Renminbi

查看更多
登录 后发表回答