【发布时间】:2018-10-05 15:14:59
【问题描述】:
我需要从开发 chrome 页面操作扩展中对“http://localhost:3000/posts”进行 GET http 调用。通过 GET 操作,我得到了需要在 popup.html 中显示的帖子列表。在“content.js”中,我从当前选项卡中获取主题列表,作为 GET 请求中的查询参数传递。
- 如何从 chrome 扩展发出 GET 请求? - 来自 chrome 扩展的 http 请求的教程链接(如果可用)会有所帮助。
- 应该从哪里发出 get 请求 - content.js、popup.js 或 background.js?
【问题讨论】: