Chrome扩展程序(根据官方教程制作)无法正常工作 [英] Chrome extension (made according to official tutorial) not working
问题描述
https://developer.chrome.com/extensions/getstarted
本教程还可以吗?我已经下载了所有提及的文件,并且扩展名无效。我认为存在与Ajax请求有关的问题。
我收到消息:
无法显示图像。 Google Image未收到任何回应..
我尝试向另一个网站执行Ajax请求,但事实证明,请求是在本地执行的 - 尽管在menifest.json文件中有权限。
在此示例中,在第60行的popup.js中, https://ajax.googleapis.com/ajax/services/search/images 。这现在已过期。
您可以通过提供查询参数进行验证。例如,
https://ajax.googleapis.com/ ajax / services / search / images?v = 1.0& q = chrome 将会回应这个API不再可用。
本论坛讨论了备用搜索API的列表。
https://groups.google.com/forum/#! topic / Google-AJAX-Search-API / Ao9TbQbYgHo
https://developer.chrome.com/extensions/getstarted
Is this tutorial still ok? I've downloaded all metioned files and the extension is not working. I think there is a problem connected with Ajax request.
I got the message:
Cannot display image. No response from Google Image..
I tried to perform Ajax request to another website, but it turned out that the request is performed locally - despite of permissions in a menifest.json file.
In this example, inside popup.js at line 60, a call is made to https://ajax.googleapis.com/ajax/services/search/images. This is now expired.
You can verify by providing a query argument. For example, https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=chrome will give response "This API is no longer available.".
This forum discusses the list of alternate search APIs. https://groups.google.com/forum/#!topic/Google-AJAX-Search-API/Ao9TbQbYgHo
这篇关于Chrome扩展程序(根据官方教程制作)无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!