📜  jquery 数据选择器 - Javascript 代码示例

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

代码示例4
$("ul[data-group='Companies'] li[data-company='Microsoft']") //Get all elements with data-company="Microsoft" below "Companies"

$("ul[data-group='Companies'] li:not([data-company='Microsoft'])") //get all elements with data-company!="Microsoft" below "Companies"