Sharp jQuery (2nd Edition) cover

Sharp jQuery (2nd Edition)

Rating 4.2
Chapters
18
Series
Front-End Development Series
ISBN
9787115281609

Tags

Summary

This is the second edition of Sharp jQuery, co-authored by Shan Donglin, Zhang Xiaofei, and Wei Ran, a systematic guide to using jQuery, the classic JavaScript library. The book proceeds from the shallow to the deep: it first introduces the role of JavaScript libraries and the advantages of jQuery, environment setup, coding style, and the differences and conversions between jQuery objects and DOM objects; then explains the jQuery selector system, including basic selectors, hierarchical selectors, filter selectors, and form selectors; next it details DOM operations, covering finding, creating, inserting, deleting, copying, and replacing nodes, as well as setting attributes, styles, HTML and text values, and traversal; it then discusses event binding, event bubbling, event objects, and various animation effects; and it extends to common form and table applications, writing and handling Ajax requests, and using and developing custom plugins. The second edition adds jQuery Mobile development, an overview of changes across jQuery versions, performance optimization, and practical tips, and uses Chapter 8 to integrate the knowledge from earlier chapters into a complete website case, guiding readers through a full project workflow from case study, materials, structure, and styles to script design. The appendices add reference material on the $(document).ready() function, Firebug debugging, the properties and methods of the XMLHttpRequest object, a detailed explanation of $.ajax() parameters, XML parsing, the plugin API, and a jQuery quick-reference table, for easy consultation.

Editor's review

一本在上世纪 Web 前端黄金期被反复推荐的中文 jQuery 教程,特点是把“库怎么用”拆成选择器、DOM、事件动画、Ajax、插件几条主线,每章配案例,学完一章就能立刻上手改页面。第2版相比初版补进了 jQuery Mobile、版本差异梳理和性能优化章节,还专门用一整章把前面零散知识点合成一个完整网站项目,对缺少实战经验的学习者尤其友好;文末的速查表与插件 API、$.ajax() 参数详解,做真实项目时随手翻也够用。需要提前说明的是:本书成书于 2012 年,jQuery 版本与浏览器生态早已变化,作者力推的 jQuery Mobile 今已基本退场,书中部分写法也非现代最佳实践。但作为理解“用选择器操作 DOM、用事件驱动交互”这一套前端基本功的入门读物,它的讲解路径依然清晰,适合作为学习框架的第一块垫脚石,而非长期依赖的操作手册。

Who it's for

A good fit for

  • 刚接触 JavaScript、想快速做出页面交互效果的前端新手
  • 对 DOM 操作、事件、Ajax 概念模糊、需要系统梳理的开发者
  • 维护老项目、需要读懂和改造 jQuery 代码的后端或全栈人员
  • 想通过完整案例练习把零散知识点串成项目的自学者

Not a good fit for

  • 已经熟练使用 React、Vue 等现代框架、只想学新技术的开发者
  • 寻找 jQuery 最新版本(3.x 以后)官方用法与最佳实践的读者
  • 只关心 jQuery Mobile 等移动端方案现状、需要前沿资料的人

Reading tips

  1. 先通读第1、2章,把 jQuery 对象与 DOM 对象、选择器这两处基础打牢,后面几章会反复用到。
  2. 第3至第7章务必跟着书上例子动手写代码,最好按章把案例在本地复现一遍,比只读有效得多。
  3. 把第8章的整站案例当成一个小项目独立做一次,做完再对照书中的结构与脚本思路找差距。
  4. 阅读时同步查阅 jQuery 官方 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. Chapter 1 Getting to Know jQuery
  2. Chapter 2 jQuery Selectors
  3. Chapter 3 DOM Operations in jQuery
  4. Chapter 4 Events and Animations in jQuery
  5. Chapter 5 jQuery Operations on Forms and Tables and More Applications
  6. Chapter 6 Using jQuery with Ajax
  7. Chapter 7 Using and Writing jQuery Plugins
  8. Chapter 8 Building a Personalized Website with jQuery
  9. Chapter 9 jQuery Mobile
  10. Chapter 10 Changes Across jQuery Versions
  11. Chapter 11 jQuery Performance Optimization and Tips
  12. Appendix A About the $(document).ready() Function
  13. Appendix B Firebug
  14. Appendix C Properties and Methods of the Ajax XMLHttpRequest Object
  15. Appendix D Detailed Explanation of jQuery $.ajax() Parameters
  16. Appendix E Loading and Parsing XML with jQuery
  17. Appendix F Plugin API
  18. Appendix G jQuery Quick Reference

FAQ

这本书讲的是哪个版本的 jQuery?现在还能用吗?
第2版成书于2012年前后,示例主要基于当时的 jQuery 1.7 左右版本。核心的选择器、DOM 操作、事件与 Ajax 思路今天仍然成立,但部分 API 已废弃或被改进,学习时建议对照官方文档,用较新的 3.x 版本练习。
零基础、没学过 JavaScript 直接读可以吗?
不建议完全零基础直接读。书中默认读者对 JavaScript 语法、DOM 概念有基本了解,第1章也只是简单带过。最好先掌握变量、函数、对象和基础 DOM 操作,再来读会顺畅很多。
第2版和第1版主要差在哪里?
第2版在初版基础上新增了 jQuery Mobile、jQuery 各版本变化梳理、性能优化与技巧等内容,章节由原来较少的篇幅扩充到第11章并保留完整附录,整体更适合系统学习与查阅。
书里的整站案例需要额外素材吗?
第8章围绕案例研究、网站材料、结构、样式和脚本展开,需要按照书中说明准备对应素材与页面文件。建议边搭骨架边写样式脚本,完整走一遍流程,案例的价值才体现得出来。
学完这本书能直接做现代前端开发吗?
不能直接覆盖现代前端需求。本书帮你打牢 DOM、事件、异步请求这些底层基本功,但组件化、构建工具、框架与工程化实践需要另外学习,建议把它当作过渡阶段的第一本书。

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.

About the author

魏然 Author

Public 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.

More by the same author

Top rated in the same category