W3Schoolsdocument.getElementById("demo").innerHTML = "I have changed!"; More examples below. The innerHTML property sets or returns the HTML content (inner HTML) of an element. See below. 更多内容请查看https://www.w3schools.com/jsref/prop_html_innerhtml.asp
菜鸟教程HTML DOM innerHTML 属性 innerHTML的属性设置或返回元素的HTML内容。 注意: 如果