prop,removeProp 这2个方法还是很有必要的
singod opened this issue · comments
sinArts commented
attribute和property都可以翻译为属性,为了以示区别,通常把这两个单词翻译为属性与特性。attribute和property共享数据,attribute更改了会对property造成影响,反之亦然,但是两者的自定义属性是独立的数据,即使name一样,也互不影响,对于值是true/false的property,类似于input的checked attribute等,attribute取得值是HTML文档字面量值,property是取得计算结果,property改变并不影响attribute字面量,但attribute改变会一向property计算。
所以prop,removeProp 这2个方法还是很有必要的,博主不知可否考虑加上!