Sharp jQuery (2nd Edition)
Shan Donglin / Zhang Xiaofei / 魏然Posts & Telecom Press2012
Rating 4.2- Word count
- 598 words
- Chapters
- 18
- Series
- Front-End Development Series
- ISBN
- 9787115281609
Tags
Computing Programming DOM ManipulationFront-End DevelopmentAnimation EffectsPlugin DevelopmentForm ValidationCase ExercisesSystematic ReviewAdvanced ReadingSecond EditionSummary
Sharp jQuery (2nd Edition) is a practice-oriented introduction to jQuery and a guide to taking it further, co-authored by Shan Donglin, Zhang Xiaofei, and Wei Ran. The book follows a simple arc: first get jQuery working, then understand why it works so well. Chapter 1 starts with the origins of JavaScript libraries and how to choose one, then covers how to include jQuery, its coding style, the difference between jQuery objects and DOM objects and how to convert between them, and how to avoid conflicts when jQuery coexists with other libraries. Chapter 2 systematically maps the jQuery selector system, from basic and hierarchy selectors to filter selectors and form selectors, with small exercises such as a brand list. Chapter 3 explains DOM manipulation: finding, creating, inserting, deleting, copying, replacing, and wrapping nodes, plus handling attributes and styles. Chapter 4 covers event binding and animation effects. Chapter 5 deals with forms and tables, including form validation, row striping, expand/collapse, and content filtering—common page effects. Chapter 6 centers on Ajax: XMLHttpRequest, jQuery's Ajax methods, element serialization, and global events, tied together with an Ajax chat room program. Chapter 7 introduces common plugins (form validation, form submission, modal windows, cookies) and shows how to write your own. Chapter 8 integrates the first seven chapters, building a complete personalized website case from asset preparation and page structure to styles and scripts. Chapter 9 introduces jQuery Mobile for mobile devices, Chapter 10 reviews changes across jQuery versions, and Chapter 11 summarizes performance optimization and practical tips. The book ends with seven appendices—the ready function, Firebug, Ajax parameters, XML parsing, the plugin API, and a jQuery quick reference—for easy lookup.Editor's review
这本书在国内前端圈有着相当特别的位置。它出现在 jQuery 最风靡的年代,写作方式却不像传统手册——作者把自己学习过程中的笔记与踩过的坑整理成书,所以读起来更像一位有经验的前辈带着你逐段敲代码,而不是冷冰冰的方法罗列。「每多学一点知识,就少写一行代码」这句写在书里的口号,恰好也点出了 jQuery 最吸引人的地方:用更少的代码解决更实际的兼容性和选择器问题。第2版在初版基础上补入了 jQuery Mobile、各版本变化、性能优化与技巧等内容,正文扩到 380 页、约 598 千字,覆盖面比初版更完整,同时仍保持「每章讲完就配案例」的节奏:品牌列表、超链接与图片提示、表单验证、表格变色与筛选、Ajax 聊天室,直到第8章用一个完整的个性化网站把七个章节串起来。七个附录把 ready 函数、Firebug、Ajax 参数、插件 API 和速查表集中放在书后,作为案头工具书翻查也很方便。需要提醒的是,书中示例基于当时的 jQuery 版本,今天直接照抄会在个别 API 上遇到差异,建议对照现行文档一起读。Who it's for
A good fit for
- 已有 HTML/CSS 基础、正准备学习 JavaScript 库的前端初学者
- 需要在老项目中维护或改造 jQuery 代码的开发者
- 想系统补齐选择器、DOM、事件与 Ajax 知识链的 Web 设计人员
- 偏好「边读边敲代码」而非通读理论的动手型学习者
Not a good fit for
- 完全没有 HTML 与 JavaScript 基础、尚未接触过网页编程的读者
- 只想学习 React、Vue 等现代组件框架,不需要维护旧项目的人
- 希望直接跟进 jQuery 最新版本全部变更、追求内容时效性的读者
Reading tips
- 先用一两天通读第1、2章并同步敲示例,把 jQuery 对象与 DOM 的区别打扎实
- 第4至第6章建议配合浏览器开发者工具边写边调,重点体会链式调用与事件委托
- 读第8章的综合案例时先自己动手搭一遍,再对照书中实现,差距处往往就是收获点
- 把附录G速查表打印或存为便签,日常写代码时用来查方法,比翻正文更快
About the publisher
Posts & Telecom Press China · Founded in 1953Posts & 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
- Chapter 1 Getting to Know jQuery
- Chapter 2 jQuery Selectors
- Chapter 3 DOM Manipulation in jQuery
- Chapter 4 Events and Animation in jQuery
- Chapter 5 Working with Forms and Tables in jQuery and More
- Chapter 6 Using jQuery with Ajax
- Chapter 7 Using and Writing jQuery Plugins
- Chapter 8 Building a Personalized Website with jQuery
- Chapter 9 jQuery Mobile
- Chapter 10 Changes Across jQuery Versions
- Chapter 11 jQuery Performance Optimization and Tips
- Appendix A About the $(document).ready() Function
- Appendix B Firebug
- Appendix C Properties and Methods of the Ajax XMLHttpRequest Object
- Appendix D Detailed Parameters of the jQuery $.ajax() Method
- Appendix E Loading and Parsing XML with jQuery
- Appendix F Plugin API
- Appendix G jQuery Quick Reference
FAQ
这本书第一版和第二版有什么区别?
初版 2009 年 6 月出版,347 页,ISBN 9787115207012;第2版 2012 年 7 月出版,380 页、约 598 千字,ISBN 9787115281609。第2版新增了 jQuery Mobile、jQuery 各版本变化、性能优化与技巧等内容,正文扩展到 11 章。零基础可以直接读这本吗?
不建议完全零基础直接读。书中默认读者熟悉 HTML 与 CSS,并能读懂基本的 JavaScript 语法;若连 DOM 和函数都还不熟,建议先补一本 JavaScript 入门书,再回来读第1、2章会更顺。书里的代码现在还能跑吗?
大部分示例逻辑仍然有效,但书中示例基于当时的 jQuery 版本,部分已废弃方法在新版中可能被移除或行为改变。练习时建议引入当前版本的 jQuery,并对照官方文档核对具体 API。需要学完原生 JavaScript 再读吗?
不需要全部学完。掌握变量、函数、对象、事件和基本 DOM 操作即可起步;第1章专门讲解了 jQuery 对象与 DOM 对象的转换,读完能反过来加深对原生 JavaScript 的理解。这本书适合当教材用于课程吗?
可以作为 Web 前端相关课程的参考教材,它已被部分教材采选系统收录,适用专业标注为软件开发。但教师需补充现代前端内容,并对书中旧版 API 做一定更新说明。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.
About the author
Shan Donglin AuthorShan Donglin is a Chinese author of technical books. Public information about him is limited: his dates of birth and death, nationality, and professional career are not clearly documented. According to the library's holdings, he has four works, all centered on the jQuery library in front-end development. Among them, Sharp jQuery (2nd Edition) appears repeatedly, indicating that it is his representative achievement. In terms of subject matter, the author focuses on practical techniques for JavaScript and web interaction development, addressing readers who wish to study front-end programming systematically. His writing tends to explain library usage and solutions to common problems through concrete examples, a common approach in books on computing, programming design, and software learning. Because reliable information about his life and writing background is lacking, this note is based only on the works themselves and makes no further inferences about his experience or influence.
Zhang Xiaofei AuthorPublicly available information about Zhang Xiaofei is relatively limited, and what exists centers mainly on computer books she has contributed to. Five of her works are included in the collection, with the representative titles being Sharp jQuery (2nd Edition) and Software Security Development; the common categories are computing, programming design, and software learning. These works suggest a focus on hands-on technical practice: the former centers on jQuery, a front-end development tool, and emphasizes practical techniques and development experience, while the latter addresses the specialized field of secure software development and the security issues that arise during development. Overall, her books lean toward technical introductions and engineering practice, serving readers who want to study programming and software development systematically. Since details such as her dates of birth and death and her nationality remain unclear, no speculation is offered here.
魏然 AuthorPublic information about Wei Ran is limited. At present, it is known only that this author has been involved in two books on quite different subjects. One is a medical work, Questions and Answers from Liu Daxin's Mentorship: Analysis of Clinical Cases and Academic Thought in Otorhinolaryngology, included in the "Great Physicians' Legacy Library." Written in a question-and-answer format, it presents clinical cases in otorhinolaryngology and sorts out and analyzes the related academic ideas, serving both as a clinical reference and as a record of transmitted knowledge. The other is A Handbook of Latin American Social Thought, a work in philosophy that shows the author's concern with social thought and theoretical questions. The two works span a considerable range: one organizes concrete clinical experience, while the other surveys lines of intellectual development. The writing thus combines practical concerns with speculative reflection and addresses both specialist readers and general readers interested in the relevant issues. Since details such as dates of birth and death, nationality, education, and career remain unconfirmed, no further inferences are made here.