openexchangerates / money.js

money.js is a tiny (1kb) javascript currency conversion library, for web & nodeJS
http://openexchangerates.github.io/money.js
MIT License
1.46k stars 127 forks source link

This library is how to use in the end, did not understand #32

Open t3rryhe opened 7 years ago

t3rryhe commented 7 years ago

javascript

fx.base = "USD"; fx.rates = { "EUR" : 0.9499, // eg. 1 USD === 0.9499 EUR "GBP" : 0.8143, "CNY" : 6.9176, "HKD" : 7.7554, "JPY" : 116.91, "KRW" : 1201, "USD" : 1, // always include the base rate (1:1) / etc / }

HTML

I would like to list the values of these currencies For example, the default is 100USD, the value listed in other currencies