- 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.
推薦閱讀
- 爸媽微信e時代
- 人臉識別算法與案例分析
- Windows Phone 7 Silverlight Cookbook
- 中文版CorelDRAW X6基礎培訓教程(第2版)
- Photoshop+CorelDRAW平面設計案例實戰:從入門到精通(視頻自學全彩版)
- 企業微信公眾平臺開發實戰:再小的個體也有自己的品牌
- Oracle Application Express Forms Converter
- Oracle BI Publisher 11g: A Practical Guide to Enterprise Reporting
- 攝影師的后期課:人像調色篇
- Funambol Mobile Open Source
- Linux Shell腳本攻略(第3版)
- Expert Python Programming
- 中文版Photoshop CS6基礎教程
- 剪映短視頻后期制作及運營從新手到高手
- AutoCAD 2012建筑設計與制作標準實訓教程