📜  javascript 获取嵌套元素 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:21.108000             🧑  作者: Mango

代码示例1
// for the links of the first ul.menu on the page
var menuLinks = document.getElement("ul.menu").getElements("a");
// or you can get all links children of all uls with class menu
var menuLinks = document.getElements("ul.menu a");