Chrome教程 - 选项页面 [英] Chrome tutorials - options page

查看:104
本文介绍了Chrome教程 - 选项页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理我的第一个Chrome扩展程序。



我按照这篇文章 http://code.google.com/chrome/extensions/options.html 将我的选项页面关闭。所以,当我重新加载我的扩展,并点击选项我正确地看到页面,但是当我更改选项并保存它时,设置不会被保存。就设置而言,它现在非常基本,只是使用入门教程。我不知道为什么这不起作用,不知道从哪里开始。谢谢。请告诉我是否可以提供更多信息。

c $ c>禁止嵌入脚本。将所有JavaScript移动到 options.js 并加载它。


I am working on my first chrome extension.

I followed this article http://code.google.com/chrome/extensions/options.html to base my options page off of. So when I reload my extension, and I click "options" I see the page correctly, but when I change an options and save it, the setting is not saved. As far as the setup goes it's very basic right now, just used the getting started tutorial. I am not sure why this isn't working and not sure where to start. Thank you. Please let me know if I can provide more information.

解决方案

"manifest_version": 2 forbids embedded scripts. Move all of the JavaScript to options.js and load it that way.

这篇关于Chrome教程 - 选项页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆