• 2022-06-04
    以下哪个代码能实现将id为title的元素隐藏?
    A: document.getElementById("title").style.display = "none";
    B: document.getElementsByName("title").style.display = "none";
    C: document.getElementById("title").style.display = "block";
    D: document.getElementsByClassName("title").style.display = "none";