Attribute和Prototype詳解

最新有小夥伴問我Attribute和Prototype的區別,今總結如下: Attribute: 表述HTML標籤的特性集合。 Prototype: 表述DOM對象的屬性,它屬於Js裏對象的範疇。 舉個栗子: <input id="test" placeholder="hello world" other="something" /> var input = document.getElemen
相關文章
相關標籤/搜索