📜  如何更改 js 中的 textContent - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:10.135000             🧑  作者: Mango

代码示例1
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").