nsIUserInfo 编辑
toolkit/components/startup/public/nsIUserInfo.idl
Scriptable These are things the system may know about the current user. Inherits from: nsISupports
Last changed in Gecko 1.7Implemented by: @mozilla.org/userinfo;1
. To get the service, use:
var userInfo = Components.classes["@mozilla.org/userinfo;1"] .getService(Components.interfaces.nsIUserInfo);
You can then look at the userInfo
object's attributes to learn what the system knows about the user.
Attributes
Attribute | Type | Description | Linux | Mac OSX | OS/2 | Windows |
domain | string | Read only. | The computer's domain, or the domain of its hostname. | The domain portion of the email address, if available. | Not supported. | Not supported. |
emailAddress | string | Read only. | The concatenation of the user's login name and the computer's domain. | The user's email address as saved in the system address book. | Not supported. | Not supported. |
fullname | wstring | Read only. | The user's full name. | The user's full name. | Not supported. | Not supported. |
username | string | Read only. | The user's login name. | The user's login name. | Not supported. | The user's login name. |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论