📌  相关文章
📜  javascript 从语言环境中获取货币符号 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:49.902000             🧑  作者: Mango

代码示例1
async function getCurrencySymbol() {
    const response = await fetch("http://www.geoplugin.net/json.gp");
    const data = await response.json();
    return data.geoplugin_currencySymbol;
}

const currency = await getCurrencySymbol();