Instant jQuery Selectors
Aurelio De Rosa
- 出版商: Packt Publishing
- 出版日期: 2013-08-29
- 售價: $1,170
- 貴賓價: 9.5 折 $1,112
- 語言: 英文
- 頁數: 70
- 裝訂: Paperback
- ISBN: 1783282215
- ISBN-13: 9781783282210
-
相關分類:
jQuery
海外代購書籍(需單獨結帳)
相關主題
商品描述
Learn how to master the art of effectively using jQuery's selectors
Overview
- Learn something new in an Instant! A short, fast, focused guide delivering immediate results
- Create your own jQuery filters to retrieve elements using a mnemonic name chosen by you
- Learn how to improve performances by just tweaking selectors
- Combine multiple selectors to express complex criteria
- Filter a collection of elements using the myriad of filters available in jQuery
In Detail
jQuery's selectors is one of the most important concepts of the jQuery library. Usually, the first thing you do is to select one or more elements of a page in order to manipulate them. Therefore, to efficiently learn the usage of jQuery's selectors is one of the first steps to successfully build your website.
Instant jQuery Selectors is a practical guide that will teach you how to use jQuery's selectors efficiently in order to easily select theelements of your pages to operate upon with jQuery's methods. You will go through the most common problems that you could face while developing your project and will learn how to solve them with the help of focused examples that Instant jQuery Selectors has to offer.
Instant jQuery Selectors, starting from how to set up jQuery and how to choose the right version for your project, explains to you all the selectors available using a multitude of simple and practical recipes that will help you start using selectors in the right way. Reading the presented recipes you'll learn about the numerous selectors and filters of jQuery – almost 100 of them! You will see how to reuse collections, the methods to filter collections, and how to take advantage of the lesser known parameter of jQuery's constructor: context. Also, you'll discover the methods to traverse the DOM and the techniques to improve the performance of your website by just tweaking selectors.
Instant jQuery Selectors is the resource to learn everything you need to know about jQuery's selectors.
What you will learn from this book
- Include the jQuery framework in your website
- Choose the right version for your project
- Use basic selectors like the Universal, the ID, and the Class selector
- Combine multiple selectors to create a complex one
- Select elements based on their position in the DOM or by their relation with other elements
- Learn and master jQuery's filters and create your own to fit your needs
- Discover the methods to find elements starting from a matched set of nodes
Approach
Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. Instant jQuery Selectors follows a simple how-to format with recipes aimed at making you well versed with the wide range of selectors that jQuery has to offer through a myriad of examples.
Who this book is written for
Instant jQuery Selectors is for web developers who want to delve into jQuery from its very starting point: selectors. Even if you're already familiar with the framework and its selectors, you could find several tips and tricks that you aren't aware of, especially about performance and how jQuery acts behind the scenes.
商品描述(中文翻譯)
學習如何掌握有效使用 jQuery 的選擇器的藝術
概述
- 立即學習新知!一本短小、快速、專注的指南,提供即時結果
- 創建您自己的 jQuery 過濾器,以您選擇的助記名稱檢索元素
- 學習如何僅透過調整選擇器來改善性能
- 結合多個選擇器以表達複雜的條件
- 使用 jQuery 中可用的各種過濾器過濾元素集合
詳細內容
jQuery 的選擇器是 jQuery 函式庫中最重要的概念之一。通常,您首先要做的就是選擇頁面上的一個或多個元素以進行操作。因此,有效學習 jQuery 的選擇器使用方法是成功建立網站的第一步之一。
《Instant jQuery Selectors》是一本實用指南,將教您如何有效使用 jQuery 的選擇器,以便輕鬆選擇您頁面上的元素並使用 jQuery 的方法進行操作。您將了解在開發項目過程中可能面臨的最常見問題,並學習如何通過《Instant jQuery Selectors》提供的專注範例來解決這些問題。
《Instant jQuery Selectors》從如何設置 jQuery 和如何為您的項目選擇正確版本開始,向您解釋所有可用的選擇器,並提供多種簡單實用的食譜,幫助您以正確的方式開始使用選擇器。通過閱讀所呈現的食譜,您將了解 jQuery 的眾多選擇器和過濾器——幾乎有 100 種!您將看到如何重用集合、過濾集合的方法,以及如何利用 jQuery 構造函數中較不為人知的參數:context。此外,您還將發現遍歷 DOM 的方法以及僅透過調整選擇器來改善網站性能的技術。
《Instant jQuery Selectors》是學習 jQuery 選擇器所需的所有知識的資源。
您將從本書中學到的內容
- 在您的網站中包含 jQuery 框架
- 為您的項目選擇正確的版本
- 使用基本選擇器,如通用選擇器、ID 選擇器和類別選擇器
- 結合多個選擇器以創建複雜的選擇器
- 根據元素在 DOM 中的位置或與其他元素的關係選擇元素
- 學習並掌握 jQuery 的過濾器,並創建符合您需求的過濾器
- 發現從匹配的節點集合中查找元素的方法
方法
本書充滿實用的逐步指導和清晰的解釋,涵蓋最重要和最有用的任務。《Instant jQuery Selectors》遵循簡單的操作格式,提供旨在讓您熟悉 jQuery 提供的各種選擇器的食譜,並通過大量範例進行說明。
本書的讀者對象
《Instant jQuery Selectors》適合希望從 jQuery 的起點——選擇器開始深入了解 jQuery 的網頁開發人員。即使您已經熟悉該框架及其選擇器,您仍然可以找到一些您未曾了解的技巧和竅門,特別是在性能和 jQuery 背後的運作方式方面。