最后,添加清单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).
应用推荐