摘要: function log(msg){var logger = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService);logger.logStringMessage(msg); }在JS中直接调用log方法即可。然后,调用“错误控制台”的接口就是nsIConsoleService。 阅读全文
posted @ 2010-10-30 15:14 j2ee技术 阅读(195) 评论(0) 推荐(0) 编辑