Attribute和Prototype详解

最新有小伙伴问我Attribute和Prototype的区别,今总结如下: Attribute: 表述HTML标签的特性集合。 Prototype: 表述DOM对象的属性,它属于Js里对象的范畴。 举个栗子: <input id="test" placeholder="hello world" other="something" /> var input = document.getElemen
相关文章
相关标签/搜索