【文件属性】:
文件名称:js-promise-example:JavaScript中的Promise示例
文件大小:2KB
文件格式:ZIP
更新时间:2021-02-19 01:02:52
JavaScript
Javascript承诺示例
这是在Javascript中使用诺言的示例。 我们将通过Promise连接使用第一个API数据的两个API。
描述
获取*艺术家API: ://ws.audioscrobbler.com/2.0/?method chart.gettopartists&api_key API_KEY&format =
获取每个艺术家API的热门曲目: ://ws.audioscrobbler.com/2.0/?method=chart.gettopartists&artist=ARTIST_NAME&api_key=API_KEY&format=
要生成API_KEY,请访问: ://www.last.fm/api/account/create
对于开放项目
克隆存储库。
在任何导航器上打开index.html。
去检查员。
【文件预览】:
js-promise-example-master
----README.md(604B)
----index.html(328B)
----js-promise-example.js(2KB)