• 2022-06-04
    网页中假设有id值为"demo"的div,要将div的内容设置为"hello",需要用以下哪个js语句?<div id="demo"></div>
    A: document.getElementById("demo").value="hello";
    B: document.getElementById("demo").innerText="hello";
    C: demo.innerText="hello";