如何使用QuerySelector获得第二场比赛? [英] How to get the second match with QuerySelector?

查看:234
本文介绍了如何使用QuerySelector获得第二场比赛?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下语句为我提供了 titanic

element = document.querySelector('.titanic');

我将如何检索具有相同类的第二个元素?

How would I retrieve the second element with the same class?

推荐答案

使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆