好吧,你没有提供太多信息,但你有两种方法:
我们node是一个DOM节点:
node.childNodes[1]; //0 is the first child.
Run Code Online (Sandbox Code Playgroud)
其他方式...
node.querySelector(':nth-child(2)'); //in selectors, the first child has index 1.
Run Code Online (Sandbox Code Playgroud)