首页 > 代码库 > 汇率转换

汇率转换

<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus?">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
</head>
<body>
  <script type="text/javascript">
  var euroToDollarRate=0.872;
  var eurosToConvert=prompt("How many Euros do you wish to convert","5343");
  var dollars=eurosToConvert*euroToDollarRate;
  document.write(eurosToConvert+"euros is "+dollars+"dollars");
  </script>
</body>
</html>

汇率转换