- jQuery 1.4 Reference Guide
- Jonathan Chaffer Karl Swedberg Karl Swedberg
- 109字
- 2021-08-20 16:29:45
Chapter 3. DOM Traversal Methods
In addition to the selector expressions described in Chapter 2, Selector Expressions, jQuery has a variety of DOM traversal methods that help us select elements in a document. These methods offer a great deal of flexibility, even allowing us to act upon multiple sets of elements in a single chain as follows:
$('div.section').addClass('lit').eq(1).addClass('profound');
At times, the choice between a selector expression and a corresponding DOM traversal method is simply a matter of taste. However, there is no doubt that the combined set of expressions and methods makes for an extremely powerful toolset for acting on any part of the document we desire.
推薦閱讀
- iPad+Procreate數字插畫設計案例教程(全彩微課版)
- 中文版After Effects CC實用教程
- 從零開始:Photoshop CC 2019中文版基礎教程
- 剪映專業版(電腦版)視頻剪輯全攻略:音效添加+轉場特效+視頻制作
- 中文版Illustrator CC實用教程
- Flash Facebook Cookbook
- SolidWorks 2019快速自學寶典
- Photoshop CC移動UI設計實用教程
- Photoshop CS6從入門到精通
- 音樂日記:Studio One 6場景×風格編曲實用教程
- 中文版CINEMA 4D R20 實用教程
- 中文版AutoCAD 2022從入門到精通
- 玩轉電子設計:基于Altium Designer的PCB設計實例(移動視頻版)
- 3ds Max三維動畫制作項目式教程
- AI賦能Rhino產品造型創意設計(視頻教學版)