摘要: 使用以下代码,可以获取当天的汇率进行货币转换 function convert_currency($number, $currency) { // Fetching JSON $req_url = 'https://api.exchangerate-api.com/v4/latest/USD'; $ 阅读全文
posted @ 2020-01-20 16:07 Ryan_zheng 阅读(1777) 评论(3) 推荐(0) 编辑
摘要: 网站开发时经常遇到需要追踪链接跳转是否正确的需求, 例如在浏览器输入一个链接 https://www.ryanzoe.top/git/how-to-revert-git 由于链接输入不完整,但是我有配置 301 跳转到完整的文章链接,所以最终地址栏显示的链接为 https://www.ryanzoe 阅读全文
posted @ 2020-01-20 12:21 Ryan_zheng 阅读(5930) 评论(0) 推荐(1) 编辑