Aed html货币符号代码

时间:2015-08-20 05:58:40

标签: html5

其他货币符号代码正在safari&其它浏览器。阿联酋货币符号在Firefox& Chrome,但在Safari浏览器中无法正常工作

2 个答案:

答案 0 :(得分:3)

您是否尝试使用hex表示法来显示符号?

AED的

hex符号为د.إ

234.17 <span>&#x62f;&#x2e;&#x625;</span>

答案 1 :(得分:0)

使用 Intl.NumberFormat 的另一种简便方法:

<template>
<div id="app">
    <div class="paragraph" :class="{showmore:checkStatus}">
       <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.             Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

  </p>
</div>
<button @click="changeData">{{ readStatus }}</button>
  </div>
  </template>

<script>
  export default {
  name: 'App',
  data:function(){
return {
  readStatus:'readmore',
  checkStatus:false
}
},
methods:{
changeData:function(){

  if(this.readStatus=='readmore'){
    this.readStatus='readless';
    this.checkStatus=true;
  }else{
    this.readStatus='readmore';
    this.checkStatus=false;
  }
  }
  }
 }
  </script>

<style scoped>
  .paragraph {
max-height: 100px;
overflow: hidden;
transition: max-height 2s;

 }
 .paragraph p{
  color: black;
 }
 .showmore{
max-height: 500px;
overflow: auto;
 }
</style>

或使用真实的阿拉伯数字:

var number = 244.70;

console.log(new Intl.NumberFormat('ar', {
  style: 'currency',
  currency: 'AED'
}).format(number));