innerText innerHTML 获取文本节点的值
By implementing the innerText attribute yourself, you allow these pages to support more browsers.
通过自己实现innertext属性,可以让这些页面支持更多的浏览器。
The classic example of an API that differs greatly across browsers is setting the innerText property of an element.
演示API在不同浏览器之间差别很大的一个经典例子就是设置一个元素的innertext属性。
The innerText attribute offers special features, such as the ability to get the text of the child node directly, which can help you write cleaner code.
innerText 属性提供了特殊特性,比如能够直接获得子节点的文本,这可以帮助我们编写更干净的代码。
应用推荐