怎么通过 Javascript/JQuery/Ajax 来调用 API?
本站开始提供一些免费有意思的API让大伙来使用. 所有的API都是在这台主机VPS上实现和运行的. 举这个API为例 fortune 能随机的返回一段(句)话 然后我们就可以通过 Javascript/JQuery/Ajax 来动态的显示在浏览器中: <script type='text/Javascript' src='https://helloacm.com/jquery/jquery-2.1.4.min.js'></script> <script type='text/Javascript'> $(document).ready(function () { $.ajax( { dataType: "json", url: "https://helloacm.com/api/fortune/", cache: false, success: function (response) { document.write(response); …