所以,我有一个选项页面,用户可以在其中定义某些选项并将其保存在localStorage中: options.html
options.html
现在,我还有一个内容脚本需要获取options.html页面中定义的选项,但是当我尝试从内容脚本访问localStorage时,它不会从选项页面返回值.
如何让我的内容脚本从localStorage,选项页面甚至后台页面获取值?
local-storage google-chrome-extension content-script
content-script ×1
google-chrome-extension ×1
local-storage ×1