当我们使用Jetpack 0.6时,我们可以表现出这样的东西,
var manifest = {
settings: [
{
name: "foo",
type: "group",
label: "Twitter Account",
settings: [
{ name: "twitterId", type: "text", label: "Username" },
{ name: "twitterPass", type: "password", label: "Password" }
]
}
]
};
jetpack.future.import("storage.settings");有没有人知道如何在Jetpack SDK 0.9中做同样的事情。
我应该使用哪个模块?
发布于 2010-12-09 02:35:59
导入已更改为: var simpleStorage = require("simple-storage");
请参阅:https://jetpack.mozillalabs.com/sdk/0.9/docs/#module/addon-kit/simple-storage
https://stackoverflow.com/questions/4365742
复制相似问题