📅  最后修改于: 2022-03-11 15:01:10.135000             🧑  作者: Mango
Get the text content of an element: var x = document. getElementById("myBtn"). ...
Change the textual content of a element with id="demo": getElementById("demo"). textContent = "Paragraph changed!";
Get all the textual content of an
element with id="myList": getElementById("myList").