我正在尝试编写一些 JavaScript 代码来连接到 SoundCloud 并在我的 Soundcloud 配置文件中列出曲目。(https://soundcloud.com/bigwedgeofcheese)
我一直按照这里的说明操作:https ://developers.soundcloud.com/docs/api/sdks
我已按照说明在我的本地托管网站中添加了一个名为 callback.html 的页面。
我在 Chrome 中没有任何问题,但在 Internet Explorer 中,在“允许“SoundcloudTestApp”访问您的 SoundCloud 帐户?”之后出现以下错误。页面消失了。
行:7 错误:无法获取未定义或空引用的属性“setTimeout”
这来自这里:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Connect with SoundCloud</title>
</head>
<body onload="window.opener.setTimeout(window.opener.SC.connectCallback, 1)">
<b style="width: 100%; text-align: center;">This popup should automatically close in a few seconds</b>
</body>
</html>
但这在 Chrome 中运行良好。请问有人可以帮忙吗?如果您需要更多信息,请告诉我,我会添加。谢谢