0

当我们使用 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 中做同样的事情。
我应该使用哪个模块?

4

1 回答 1

1

导入已更改为: var simpleStorage = require("simple-storage");

见:https ://jetpack.mozillalabs.com/sdk/0.9/docs/#module/addon-kit/simple-storage

于 2010-12-08T18:35:59.363 回答