我想将库SpotifyWebApi
(链接)与浏览器 javascript(chrome 扩展)一起使用。
如果你想使用 Promises/A+ 库,你可以设置它
spotifyApi.setPromiseImplementation(Q);
如果我这样做,会引发错误
未捕获的 ReferenceError:Q 未定义
如果像这样
spotifyApi.setPromiseImplementation(Promise);
错误处理响应:TypeError: _promiseImplementation.defer 不是函数
如何使用Promise
这个库?
慕娘9325324
相关分类