06:32 XPCOM OS のシステム情報を得る
- Class
- @mozilla.org/system-info;1
- Interface
- nsIPropertyBag2
const Cc = Components.classes; const Ci = Components.interfaces; var sysInfo = Cc['@mozilla.org/system-info;1'].getService(Ci.nsIPropertyBag2); var pratform = sysInfo.getProperty('name');
Properties and Example
- name
- Windows_NT
- Mac OS X
- Linux
- version
- 5.1
- arch
- x86
- host
- femo