问题描述
不管我们尝试,每次我尝试调用函数getSpotifyApi它总是返回:
的ReferenceError:getSpotifyApi没有定义
No matter what we try, every time I try to call the function "getSpotifyApi" it always returns:"ReferenceError: getSpotifyApi is not defined"
我难倒哪里从这里走,因为我不能做任何事情的Spotify,如果它不会让我使用其API ...
I'm stumped on where to go from here because I can't do anything with spotify if it wont let me use its api...
所有我的javascript code在标签我的应用程序的index.html的。
All my javascript code is in tags in the index.html of my app.
推荐答案
如果 getSpotifyApi
没有定义,可能是因为你使用的是1.X API,它使用一种不同的方法,以包括框架。我建议你去看看在这也解释了基础知识如何入门。
If getSpotifyApi
is not defined it is probably because you are using the 1.X API, which uses a different approach to include the frameworks. I would recommend you to have a look at the Developer Guidelines which explains the basics on how to getting started.
还有一个的,你可以用它来看看不同的可用框架是如何使用的。
There is also a sample app on GitHub that you can use to see how the different available frameworks are used.
这篇关于不能使用" getSpotifyApi"在Spotify应用功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!