📜  自定义属性 jquery 选择器 - Javascript 代码示例

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

代码示例1
$("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"