Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/397.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 无法使用registerFactoryLocation在mozilla上注册首选项_Javascript_Preferences_Xpcom - Fatal编程技术网

Javascript 无法使用registerFactoryLocation在mozilla上注册首选项

Javascript 无法使用registerFactoryLocation在mozilla上注册首选项,javascript,preferences,xpcom,Javascript,Preferences,Xpcom,我使用XPCOM组件在mozilla firefox上注册首选项,但它没有反映在prefs.js文件中。 除了registerFactoryLocation代码之外,我还需要使用什么。。。。 提前感谢:) 当然,我已经开发了一个XPI,在comonts文件夹中我添加了一个mymanager.js文件。在这一点上,我已经使用类似于……….的代码创建了一个组件。。。。。。。。。。但是这段代码无法将_proritypreferece添加到mozilla firefox首选项(prefs.js)文件中。

我使用XPCOM组件在mozilla firefox上注册首选项,但它没有反映在prefs.js文件中。 除了registerFactoryLocation代码之外,我还需要使用什么。。。。 提前感谢:)


当然,我已经开发了一个XPI,在comonts文件夹中我添加了一个mymanager.js文件。在这一点上,我已经使用类似于……….的代码创建了一个组件。。。。。。。。。。但是这段代码无法将_proritypreferece添加到mozilla firefox首选项(prefs.js)文件中。我需要做更多的事情来注册偏好

虽然您的扩展可以注册首选项,但prefs.js只包含更改的首选项,因此它们不会自动出现在那里。

您的问题相当模糊。编辑它以包含不起作用的代码,并更好地描述您的问题,这将有助于我们帮助您。