js jquery操作的方面xml dom html dom css dom
1 ?xml ?dom ?
? ? ? 類似xml ? ? document 操作 --文檔處理
js ? ? ? ? ? ? ??createTextNode ??createElementNode ?...
jquery ? ? ? ?append ...
2 ?html dom?
? ? ?a ?---html 屬性操作 ? ?
? ? js ? ? ? ? ? ? getAttribute(); ? ?setAttribute(); ??.屬性= ??
? ? ? jquery ? ? ? ? ? ? ? attr() ? ? ? removeattr()
? ? b---html 內(nèi)容(元素/節(jié)點(diǎn))操作 ?
? ? ?js ? ? ? ? ? ?innerText、textContent ?innerHTML
? ? ?jquery ? ?html() ? ? text() ? ? val()
3 css dom?
? a ---css 類?
? ?js ? ? ? ? ?
? jquery ? ? addclass ? moveclass ?togggleclass
? ? ?b ---css樣式操作
? ?js ? ? ? ? ? ? ? ? ?style屬性
? jquery ? ? css() ??height()? ?offset()?offsetParent()? ?position()??scrollLeft()??scrollTop()? ?width()
?
《新程序員》:云原生和全面數(shù)字化實(shí)踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的js jquery操作的方面xml dom html dom css dom的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: js改变style样式和css样式
- 下一篇: DOM中元素节点、属性节点、文本节点的理