📅  最后修改于: 2022-03-11 15:03:38.199000             🧑  作者: Mango
代码示例2
const div = document.querySelector('div');
div.classList.contains('secondary'); // trueCode language: JavaScript (javascript)