protocol header style 协议头格式
Figure 15 shows the new header style.
图15显示了新的标题样式。
You're given every element with the header style, and you then iterate over that collection with the forEach method, applying an event listener to each element.
收到每个带有 header 样式的元素后,用 forEach 方法遍历集合,对每个元素应用一个事件侦听器。
In this case, you're looking for any elements that have the header style, and you then apply an event listener to each element returned (more on that in the next section).
在本例中,您是在寻找具有报头样式的元素,并对返回的每个元素应用一个事件侦听器(更多介绍见下节)。
应用推荐