最后,添加清单12中的历史记录按钮处理例程。
Finally, we add the handlers for the history buttons in Listing 12.
首先需要添加一个div标记来存放历史记录按钮。
First, we need to add a div tag to house the history buttons.
运行该测试页面,可以看到历史记录按钮反映了历史堆栈的状态(见图2)。
Running this test page should show us how the history buttons react to the state of the history stack (see Figure 2).
为了创建一个文件,点击记录按钮,然后就像你通常那样浏览网站。
To create a file, click record, then navigate through a Web site as you normally would. The program records your actions including clicks and typing.
我们的目标是创建一组可用的历史记录按钮:后退、前进和刷新,如图1所示。
Our goal is to create a set of functional history buttons: backward, forward, and reload, which are shown in Figure 1.
测试页面将在上方显示历史记录按钮,只有活动的按钮是突出显示并且可以单击的。
Our test will display the history buttons at the top, with only the active buttons highlighted and clickable.
display函数检查历史记录对象的当前状态,并为历史记录按钮生成HTML。
The display function will inspect the current state of the history object and generate HTML for the history buttons.
自愿参与的受试者必须随机按八个按钮,同时记录他们脑部的电磁波,以及他们的手部运动。
The volunteers were asked to press eight buttons randomly as their brain’s electrical signals were recorded, along with their hand movements.
语音备忘录应用工作正如宣传的那样,你按下按钮,这款应用会记录下麦克风收到的任何内容。
The Voice Memos app works as advertised. You press a button and the app records whatever reaches the microphone.
每条用户记录都有一个按钮来读出名字。
主gui的下面那个面板中包括一些用来添加或修改员工记录、清空面板中的字段以及退出程序的按钮。
The bottom panel of the main GUI consists of buttons for adding or modifying employee records, for clearing the form fields of a panel, and for exiting the application.
要演示这部分代码,让我们从一个观察按钮点击和记录点击数目的类开始。
To demonstrate this code, let's start with a class for observing button clicks that simply counts the number of clicks.
单击按钮后,记录数加一,并且显示具有当前记录数的对话框。
When a button is clicked, the number of records is increased by one, and a dialog box with the current number of records is displayed.
无疑,客户端将会非常疑惑为什么在点击Apply按钮后需要等待这么长时间才能得到 ClearQuest 的回应,完成修改记录的操作。
Needless to say, the client was wondering why it took so long for ClearQuest to respond after the Apply button was clicked, completing the changes to the record.
如果一切正常,这个显示应该显示一列来自数据库的作者、一个输入框、以及一个用于创建新作者记录的Add按钮。
This display should show, if everything is working well, the list of authors from the database and an input box and Add button to create a new author record.
您必须键入一些输入,单击按钮控件,直观验证结果消息,并将结果记录到Excel电子表格或其他数据存储中。
You'd have to enter some inputs, click the button control, visually verify the result message, and record the result into an Excel spreadsheet or other data store.
该按钮会将所有记录从COMPDB数据导入Domino应用程序中。
This button will import all the records from COMPDB database into the Domino application.
在记录PlaceOrder按钮的点击操作之后,您会得到图3中对象映射的以下层级结构。
After recording the click operation on the Place Order button, you get the following hierarchical structure in the object map that is illustrated by Figure 3.
如图25所示,当您试着在与项目相连的服务器上记录一个新脚本时,Finish按钮并不可用。
As shown in Figure 25, when you try to record a new script on the server that is connected to the project, the Finish push button is unavailable.
当每次你浏览一个有喜欢按钮的网页的时候,Facebook把这些数据记录到你的账户上。
Every time you visit a web page that displays the Like button Facebook logs that data in your account.
UI的屏幕截图,带有一个消息文本框、Send按钮和聊天记录列表。
Screen capture of UI with a message text box, Send button, and list of chat items.
如果我们想更改按钮按下的效果(例如还要记录时间戳记),那么这个风格就很脆弱。
This style is fragile if we want to change the effects of a button press, say to log the timestamps also. You might achieve this by inheritance.
循环进行时,每条记录都被封装到记录自己的目录条目标记中;循环完成后,按钮的设置就开始了。
As the loop progresses, each record is wrapped in its own directory entry tags; after the loop is complete, the setup for the buttons begins.
其中一种“多帐号”智能信用卡在其表面上有两个按钮,每个按钮拥有一个指示灯,你一按就能够将帐号数据记录到它的磁条上。
The "MultiAccount" card has two buttons on its face, each with an indicator light that can be pressed to record data to its magnetic strip.
在获取之后,暂停您的记录操作,输入假程序数据以激活OK按钮,重命名记录操作,点击ok,然后停止记录。
After that, pause your recording, input dummy data to enable the OK button, resume recording, click OK, and then stop recording.
说明安装引导加载程序的位置,例如主引导记录(MBR),然后完成定制过程,并单击OK按钮。
Indicate where you want to install the boot loader, such as Master boot Record (MBR), finish your customization, and click OK.
出于安全的原因,开发人员不能篡改浏览器历史记录或者任何相关按钮。
For security reasons, developers are unable to tamper with browser history or any related buttons.
但大多数人并不知道喜欢按钮跟踪记录你的浏览记录。
What most people don't know is that the Like button tracks your browsing history.
但大多数人并不知道喜欢按钮跟踪记录你的浏览记录。
What most people don't know is that the Like button tracks your browsing history.
应用推荐