Firebug使用之二--Command Line
来源:互联网 发布:网络原创女歌手郑靖雯 编辑:程序博客网 时间:2024/05/23 13:57
Command Line
The small Command Line supports auto-completion using the Tab key. For example, typing 'w' followed by Tab completes it into 'window'. Cycling through the possible completions is done with the arrow keys. Since Firebug 1.6 there's also an popup with suggestions shown for the entered part of a command, unless disabled in the Console options.
In general the Command Line evaluates whatever expression you type in. It can be a single variable or a complete JavaScript program. The evaluation is done by passing the Command Line text into the page, calling eval() on it and passing back the result.
The Command Line also supports the Command Line API, a set of special purpose commands.
In Firebug 1.6 the Command Line was made available to all panels (called Command Line Popup) and can be accessed through the Command Line Popup Button ( ). To see the output of the commands you have to drag the resizer above the Command Line Popup.
Contents
[hide]- 1 Features
- 1.1 Auto-Completion
- 1.2 Clipboard functionality
- 1.3 Shortcuts for inspected elements
- 1.4 Commands
- 1.5 Inspect object in other panel
- 1.6 Command History
- 1.7 Smart code pasting
[edit]Features
[edit]Auto-Completion
To support the user analysing elements and writing code the small Command Line integrates an auto-completion for the commands you are typing. Therefore after starting to type a command you simply have to press Tab
and Firebug is completing the command. It is also possible to complete a value with Enter
or the →
arrow key or by clicking an item inside the Completion List Popup. If there are several commands starting with the same phrase like "getElem" you can use the ↑
and ↓
arrow keys before pressing Tab
to alphabetically switch through all available commands. Also the global variables, which you defined in your script, are used. Furthermore the auto-completion is case-insensitive, which allows for rapid typing. E.g. entering "document.gete" offers "document.getElementById", "document.getElementsByClassName", "document.getElementsByName", "document.getElementsByTagName" and "document.getElementsByTagNameNS".
[edit]Clipboard functionality
The entered script can be copied as bookmarklet via the menu of the Command Editor.
[edit]Shortcuts for inspected elements
The Command Line and the Command Editor offer you the possibility to easily access elements inside the DOM similar to the sizzle selector library integrated in the jQuery Framework.
[edit]Commands
There are different commands available providing a wide variaty of functionality. For a detailed description of the these commands see the Command Line API.
[edit]Inspect object in other panel
How you inspect elements using the console is described above. Besides that it's also possible to inspect them in the most appropriate panel by hitting Shift+Enter
instead of just Enter
. The console output also often contains links to other panels like the DOM Panel.
Inside the Console Panel the Command Line has some additional features.
[edit]Command History
The Command Line saves all executed commands in a history. You can go through that history by simply pressing ↑
and ↓
. The complete history of all the executed commands is available via .
[edit]Smart code pasting
When you paste a multi-line script to the Command Line it automatically switches to the Command Editor, so that the line breaks are preserved and you can edit your script as you would do inside an editor.
- Firebug使用之二--Command Line
- Xcode使用之安装Xcode Command Line Tools
- Caffe interface 之 Command Line
- 使用Command Line下载文件
- Command line中使用TexturePacker
- Command Line中使用TexturePacker
- TexturePacker命令行使用(command line)
- 离开图形界面的那些日子 之二:Oracle 11.2.0.3 instance & database upgrade by Command Line
- The Linux Command Line 读书笔记(二)之文件系统The file system操作的命令
- command line
- command line
- command line
- Command-line
- Command Line
- 使用Java Command Line Tool开发应用程序
- mysql command line client 使用命令
- mysql command line client 使用命令
- mysql command line client 使用命令
- 1015:构建矩阵
- iOS多线程
- hdu1231 最大连续子序列
- 1013:摆积木
- Linux从用户层到内核层系列 - TCP/IP协议栈部分系列11: 再话Linux系统调用
- Firebug使用之二--Command Line
- 浙大研究生复试上机考试2005——畅通工程
- Wdk FAQ : [FLTFL_OPERATION_REGISTRATION_SKIP_PAGING_IO] Why is this flag used here? (minifilter)
- java入门学习(八)数据类型之四类八种基础类型
- 1012:外币兑换
- u-boot简介
- cocos2d-x学习笔记—图片按钮
- C++四种强制转换
- 1021:恶搞指数