?? debug-utils.js
字號:
function enumerateInterfaces(obj){ var interfaces = new Array(); for (i in Components.interfaces) { try { obj.QueryInterface(Components.interfaces[i]); interfaces.push(i); } catch(e) {} } return interfaces;}function enumerateProperties(obj, excludeComplexTypes){ var properties = ""; for (p in obj) { try { if (excludeComplexTypes && (typeof obj[p] == 'object' || typeof obj[p] == 'function')) next; properties += p + " = " + obj[p] + "\n"; } catch(e) { properties += p + " = " + e + "\n"; } } return properties;}// minimal implementation of nsIOutputStream for use by dumpRDF, adapted from// http://groups.google.com/groups?selm=20011203111618.C1302%40erde.jan.netgaroo.devar DumpOutputStream = { write: function(buf, count) { dump(buf); return count; }};function dumpRDF( aDS ) { var serializer = Components.classes["@mozilla.org/rdf/xml-serializer;1"] .createInstance( Components.interfaces.nsIRDFXMLSerializer ); serializer.init( aDS ); serializer.QueryInterface( Components.interfaces.nsIRDFXMLSource ) .Serialize( DumpOutputStream );}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -