浏览器attr 和 property 的区别attr 和 property 的区别 区别 property:修改对象属性,不会体现到 html 结构中(尽量用) attribute:修改 html 属性,会改变 html 结构 两者都有可能引起 DOM 重新渲染