Components.ID 编辑
Summary
Components.ID
is a constructor that creates native objects that conform to the nsIJSID
interface.
Syntax
var interfaceID = [ new ] Components.ID(iid);
Parameters
iid
- A string of the format
'{00000000-0000-0000-0000-000000000000}'
giving the interface ID of the interface
Description
Components.ID
creates interface IDs for use in implementing methods like QueryInterface, getInterfaces, and other methods that take interface IDs as parameters. Components.classes
, Components.classesByID
, Components.interfaces
provide pretty much all the nsID
s that most JavaScript code would ever need to deal with. The exception to this is the case where a component is written in JavaScript and needs to register itself with the component manager using its own nsID
- an ID that is not already registered and thus does not appear in Components.classes
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论