jQuery in Action, Second Edition cover

jQuery in Action, Second Edition

Rating 3.9
Word count
369K words
Chapters
1
Series
Turing Programmer Series · Web Development Series
ISBN
9787115274571

Tags

Summary

jQuery in Action, Second Edition is the Chinese translation of Manning's jQuery in Action, Second Edition, brought to readers by the Turing Program Design Series. The book is built around the idea of "explaining every new concept with practical examples," and systematically covers jQuery's core capabilities: selecting and manipulating page elements with far less code than native JavaScript, traversing the HTML document, binding and delegating events, creating animations and effects, and communicating asynchronously with the server via Ajax. It also devotes specific discussion to the concept of "unobtrusive JavaScript"—separating structure, style, and behavior, and avoiding inline scripts mixed into HTML. The second edition was fully revised to reflect changes from jQuery 1.2 to 1.4, with a large amount of sample code rewritten to reflect the best practices for page scripting at the time; it also adds three chapters on jQuery UI, covering themes and effects, mouse interactions, and widget development, helping readers build richer interface components on top of the core library. The book also explains how to write jQuery plugins and strategies for coexisting with other JavaScript libraries, and demonstrates method behavior through "lab"-style pages that make it easy to try things out while reading. The book is divided into two main parts, "Core jQuery" and "jQuery UI," with an appendix on essential JavaScript knowledge, making it suitable for Web developers of all levels who want to systematically learn this classic library.

Editor's review

这本书是 jQuery 黄金年代最有代表性的实战型读物之一:作者之一的 Yehuda Katz 是 jQuery 开发团队核心成员,书中对 API 的讲解带着“写库的人怎么看这套库”的深度,而不只是罗列用法。 它的写法很讲究节奏。开篇先用一个单选按钮分组的小例子,把原生 JavaScript 和 jQuery 的代码量差异摆在读者面前,让初学者立刻明白 jQuery 的价值;随后按“选择元素—操作 DOM—处理事件—动画特效—Ajax 通信—扩展插件”的顺序推进,每一章都有可运行的示例,概念和代码几乎一一对应。第二版最大的变化是新增了 jQuery UI 三章,覆盖主题、特效、鼠标交互与部件开发,让读者能把页面从“能用”做到“好用”。 当然,jQuery 1.x 的时代已经过去,现代前端更多依赖框架与原生 API。但书里讲的事件委托、链式风格、插件化设计、渐进增强与“不唐突的 JavaScript”等思想并不过时,对维护老项目或理解前端演化脉络的读者依然有价值。把它当作一段技术史的实战教材来读,收获会比单纯学语法更多。

Who it's for

A good fit for

  • 已掌握 HTML、CSS 和基础 JavaScript,准备系统学习 jQuery 的前端新手
  • 需要维护或改造基于 jQuery 的老项目的前端与全栈工程师
  • 想理解事件委托、链式调用、插件化设计等前端设计思想的中级开发者
  • 希望带学生或新人做入门实战训练的技术讲师与团队 Leader

Not a good fit for

  • 完全没有 HTML 与 JavaScript 基础、需要从零学编程的读者
  • 主要使用 React、Vue 等现代框架且不接触 jQuery 旧项目的开发者
  • 只追求最新技术栈、对历史版本演进不感兴趣的读者

Reading tips

  1. 先通读第1至3章,边读边在浏览器中复现示例,把选择器与 DOM 操作的手感建立起来。
  2. 第4至8章建议配合自己项目的一个小需求动手改造,例如给列表加筛选、分页与异步加载。
  3. 第9至11章可单独阅读,重点看 jQuery UI 的主题机制与部件写法,理解可复用组件如何组织。
  4. 书中的版本信息已较旧,遇到 API 差异时以官方文档为准,把书当作思路与范例来源。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Turing Program Design Series · Web Development Series

FAQ

这本书和第一版、第三版有什么区别?
第一版 2009 年出版,基于 jQuery 早期版本;第2版 2012 年出版,全面修订示例以涵盖 jQuery 1.4 与 jQuery UI 1.8,并新增三章 jQuery UI 内容;第3版 2016 年由华中科技大学出版社出版,作者增加 Aurelio De Rosa,译者改为徐雷、徐扬。
现在学 jQuery 还有必要吗?
如果只做新项目,现代框架通常够用。但大量存量网站仍基于 jQuery,维护老系统、做脚本注入或改造传统后台页面时仍会遇到它;书中事件委托、渐进增强等思想也更通用。
读这本书需要什么基础?
需要能写基本 HTML 与 CSS、看得懂 JavaScript 的函数与对象字面量。书中用附录“JavaScript必知必会”补足必要知识,但没有编程经验的读者建议先补基础再读。
书里的示例代码还能跑起来吗?
示例针对 jQuery 1.x,用现代浏览器打开大体可运行,但部分已废弃 API 可能行为不同。建议引入与书中对应的旧版本库测试,或按官方文档调整写法。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category