资源描述:
《Firefox Firebug使用文档》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、FirebugDocumentCOMMANDLINEAPI3$(id)3$$(selector)3$x(xpath)3dir(object)3dirxml(node)3cd(window)3clear()3inspect(object[,tabName])3keys(object)3values(object)3debug(fn)4undebug(fn)4monitor(fn)4unmonitor(fn)4monitorEvents(object[,types])4unmonitorEvents(object[,types])4profile([title])4profi
2、leEnd()4CONSOLEAPI4console.log(object[,object,...])4console.debug(object[,object,...])5console.info(object[,object,...])5console.warn(object[,object,...])5console.error(object[,object,...])5console.assert(expression[,object,...])5console.dir(object)5console.dirxml(node)6console.trace()6co
3、nsole.group(object[,object,...])6console.groupCollapsed(object[,object,...])6console.groupEnd()6console.time(name)6console.timeEnd(name)6console.profile([title])6console.profileEnd()6console.count([title])6ImplementationNotes7Firebug1.4710/10Firebug1.37Firebug1.27Firebug1.1andearlier7KEYB
4、OARDANDMOUSESHORTCUTS7Global7HTMLTab7HTMLEditor8HTMLInspectMode8ScriptTab8DOMTab8DOMandWatchEditor9CSSTab9CSSEditor9LayoutTab9LayoutEditor9CommandLine(small)1010/10CommandLineAPITheFirebugcommandlineprovidesthesespecialfunctionsforyourconvenience:$(id)Returnsasingleelementwiththegivenid.$
5、$(selector)ReturnsanarrayofelementsthatmatchthegivenCSSselector.$x(xpath)ReturnsanarrayofelementsthatmatchthegivenXPathexpression.dir(object)Printsaninteractivelistingofallpropertiesoftheobject.ThislooksidenticaltotheviewthatyouwouldseeintheDOMtab.dirxml(node)PrintstheXMLsourcetreeofanHTM
6、LorXMLelement.ThislooksidenticaltotheviewthatyouwouldseeintheHTMLtab.YoucanclickonanynodetoinspectitintheHTMLtab.cd(window)Bydefault,commandlineexpressionsarerelativetothetop-levelwindowofthepage.cd()allowsyoutousethewindowofaframeinthepageinstead.clear()Clearstheconsole.inspect(object[,t
7、abName])Inspectsanobjectinthemostsuitabletab,orthetabidentifiedbytheoptionalargumenttabName.Theavailabletabnamesare"html","css","script",and"dom".keys(object)Returnsanarraycontainingthenamesofallpropertiesoftheobject.values(object)Returnsanarraycontainingthevaluesof