innerHTML获取元素的HTML内容,和设计元素的HTML内容(HTML标签会被解析)例如:ele.innerHTML="<strong>我会被解释加粗</strong>";innerText获取元素的文本内容,和设计元素的文本内容(HTML标签被当做内容显示)例如:ele.innerText="<strong>我会被当做内容显示</strong>";innerText==textContent(兼容的写法)