- 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.
推薦閱讀
- Painter 現(xiàn)代服裝效果圖表現(xiàn)技法
- Alfresco Developer Guide
- IBM Lotus Notes 8.5 User Guide
- AI繪畫教程:Midjourney關(guān)鍵詞靈感手冊
- Lightroom Classic完全自學(xué)一本通
- jQuery Mobile First Look
- 中文版Photoshop CS6平面設(shè)計(jì)實(shí)用教程(第2版)
- Premiere視頻編輯應(yīng)用教程:PremierePro 2020(微課版)
- 中文版CorelDRAW X6基礎(chǔ)培訓(xùn)教程(第2版)
- CMS Design Using PHP and jQuery
- Photoshop CS6 圖像處理項(xiàng)目任務(wù)教程
- Moldflow 2021模流分析從入門到精通(升級版)
- After Effects 2022從入門到精通
- Cinema 4D/After Effects印象 影視包裝技法精解基礎(chǔ)篇
- Photoshop 2020實(shí)戰(zhàn)從入門到精通(超值版)