bing api 2.0 sdk json 示例在 Firefox 浏览器中出现语法错误

发布于 2024-09-01 13:31:39 字数 197 浏览 2 评论 0原文

我刚刚下载了 Bing API 2.0 SDK。 Bing API 2.0 SDK\Samples\JSON 目录中有几个 html 文件。我用新的 AppId 替换了 JavaScript 中的 AppId。这些页面在 IE 中运行良好,但在 Firefox、Firebug 控制台中出现“语法错误”。有人有类似的问题吗?页面中的什么内容导致了“语法错误”? 非常感谢。 贾祖雷

I just downloaded the Bing API 2.0 SDK. There are several html files in Bing API 2.0 SDK\Samples\JSON directory. I replaced the AppId in the JavaScript with my new AppId. These pages run fine in IE but I got 'syntax error' in Firefox, Firebug console. Does anyone have similar issues? What is in the page that is causing the 'syntax error'?
Thank you very much.
Jazure

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲世九天 2024-09-08 13:31:39

罪魁祸首是空脚本 src。

<script id="searchCallback" type="text/javascript" src="">
</script>

我修复了示例代码,现在可以与大多数浏览器一起使用,如所示
http://www.pcrethinking.com/bingapi/

The culprit is the empty script src.

<script id="searchCallback" type="text/javascript" src="">
</script>

I fixed the sample code and is now working with most browsers as seen in
http://www.pcrethinking.com/bingapi/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文