While textContent returns the full text contained in a node, innerText returns only the visible text contained in the node.
textContent
返回的是节点里所有的文本文档
innerText
返回的是在节点中只能看见的文本文档
摘自:https://stackoverflow.com/questions/13122760/is-there-any-major-difference-between-innerhtml-and-using-createtextnode-to-fill