JS中attribute和property的区别 简单理解,Attribute就是dom节点自带的属性,例如html中常用的id、class、title、align等。 而Property是这个DOM元素作为对象,其附加的内容,例如childNodes、firstChild等。 转自:https://www.cnblogs.com/lmjZone/p/8760232.html