In the first td element you'll notice the first special instruction attribute for Exhibit, ex: role.
在第一个td元素,您会注意到Exhibit的第一个特定指令属性ex: role。
The problem with this code is that this returns each and every td element in the DOM.
这段代码的问题是它将返回DOM中的所有td元素。
Next, let's assume that you only want to get the first child element of the row, in this case, the td element with the content "Joe Lennon." to do this, you use the following statement.
下一步,假设只希望取得该行的第一个子节点,在本例中,是内容为“Joe Lennon”的td元素。
应用推荐