📅  最后修改于: 2022-03-11 15:02:18.838000             🧑  作者: Mango
// Select div with class "theDiv"
document.queryselector('.theDiv');
// Select div with ID "theDiv"
document.queryselector('#theDiv');