JavaScript in Action: A Complete Collection of JavaScript, jQuery, HTML5, and Node.js Examples (2nd Edition) cover

JavaScript in Action: A Complete Collection of JavaScript, jQuery, HTML5, and Node.js Examples (2nd Edition)

No rating yet
Word count
1.1M words
Chapters
29
Series
Web Front-End Technology Series
ISBN
9787302498452

Tags

Summary

Starting from popular front-end application scenarios, this book strings native JavaScript, HTML5 and CSS3, Canvas, jQuery 3.x, and Node.js into a complete learning path, advancing entirely through small examples that can be reproduced by hand. The book is divided into 5 parts and 24 chapters. Part One covers native JavaScript fundamentals, grounding the syntax in concrete features through form validation, photo display, AJAX refresh-free experiences, waterfall layouts, and directory-tree controls; Part Two covers popular HTML5 features, including revamped forms and form validation, embedded audio and video playback in web pages, drawing graphics with CSS3, 3D rotation animation, SVG animation, and an offline-capable content management system; Part Three focuses on Canvas, from basic drawing to building a small flying game and on to unusual uses such as image compression and decompression; Part Four turns to jQuery, covering dynamic effects, user interaction, progress bars and sliders for beautifying pages, and building dazzling interfaces with tool sets; Part Five moves to Node.js, from setting up the simplest web server to building an HTTP server with the Express framework and finally implementing a Socket-based chat system. The 2nd Edition updates the jQuery and Node.js portions and provides downloadable sample code, making it suitable as a hands-on introductory reader for learning front-end development from scratch.

Editor's review

很多前端入门书的问题是:语法讲得很全,学完却不知道能做什么。这本书反其道而行,每一章都以一个看得见成果的小项目收尾。原生 JavaScript 部分用表单验证、照片展示、瀑布流和目录树控件,把 DOM 操作、事件、异步请求讲成可以马上运行的功能;HTML5 与 CSS3 部分从新表单验证一路做到 3D 旋转方块、SVG 动画和可离线的内容管理系统;Canvas 篇分三步递进:绘图、做飞行游戏、做图片压缩;jQuery 与 Node.js 两篇则把读者从浏览器带到服务端,最后用 Socket 聊天系统做收束。第 2 版对应 jQuery 3.x 与较新的 Node.js 写法,避免了早年教程 API 过时的问题。全书 5 篇 24 章的层次清晰,示例偏重实用性,可直接拆开来改造成自己的练习项目,还配有示例代码资源,上手成本低。

Who it's for

A good fit for

  • 零基础或基础薄弱、想通过动手做小项目入门 Web 前端的人
  • 在校学生或转行学习者,需要用一本完整实例书覆盖 JavaScript 到 Node.js
  • 会写页面但没系统练过 Canvas、AJAX、jQuery 的前端新手
  • 需要理解前后端如何衔接、想初步接触 Node.js 的全栈初学者

Not a good fit for

  • 已有一到两年开发经验、希望深入框架原理与源码的进阶工程师
  • 只想要一本纯语法参考手册、不需要案例项目的读者
  • 追求最新 ES 新特性与现代 React/Vue 框架体系的读者

Reading tips

  1. 按篇顺序推进,先吃透原生 JavaScript 篇,再进入 HTML5、Canvas、jQuery 与 Node.js,避免跳章造成概念断层。
  2. 每一章的示例都亲手敲一遍并尝试改动参数或样式,只有改过代码才算真正掌握。
  3. 遇到 AJAX、Canvas 与 Socket 部分时,边看边在浏览器开发者工具里调试,理解数据是怎么流动的。
  4. 第 2 版中部分 API 写法已不是最新规范,可对照 MDN 文档补充当前标准写法,把本书当作项目练习册而非唯一语法依据。

About the publisher

Tsinghua University Press China · Founded in 1980

Founded in 1980, Tsinghua University Press has 57 titles in our collection, covering popular science, medicine, health, law, philosophy and social sciences. Representative works include medical popular-science books such as Cancer Truth: Doctors Are Reading It Too and New Knowledge on Cancer by Bo Luo (Li Zhizhong), legal titles such as Sunshine Is the Best Preservative: Express Delivery of Major Global Anti-Corruption Cases, and works like Qi Ge's A Brief History of Philosophy with Big Ideas and Liu Yunhao's From the Internet to a New Industrial Revolution. Its authors include science writers, medical researchers, the Renmin University of China anti-corruption master's class and university scholars, reflecting a publishing profile that balances academic seriousness with accessible reading. As public information is limited, this profile is based only on the titles in our collection.

Contents

  1. Part One: JavaScript in Action
  2. Chapter 1: JavaScript Overview
  3. Chapter 2: Validating Forms with JavaScript
  4. Chapter 3: Displaying Photos with JavaScript
  5. Chapter 4: AJAX—A Refresh-Free User Experience
  6. Chapter 5: Waterfall Layouts
  7. Chapter 6: Building a User Control—The Directory Tree View
  8. Part Two: HTML5 + CSS3 in Action
  9. Chapter 7: HTML5 Overview
  10. Chapter 8: A Revamped Form
  11. Chapter 9: Easily Controlling Multimedia Video and Music in Web Pages
  12. Chapter 10: Drawing Doraemon with CSS3
  13. Chapter 11: Dazzling CSS3 Animation—The 3D Rotating Cube
  14. Chapter 12: An Offline-Capable Content Management System
  15. Chapter 13: SVG Animation
  16. Part Three: HTML5 Canvas in Action
  17. Chapter 14: First Uses of Canvas—Drawing Doraemon Again
  18. Chapter 15: Advanced Uses of Canvas—Making a Flying Game
  19. Chapter 16: An Unusual Use of Canvas—Compression and Decompression
  20. Part Four: jQuery in Action
  21. Chapter 17: Introduction to jQuery
  22. Chapter 18: Responding to Visitors with Dynamic Effects
  23. Chapter 19: Beautifying Pages with User Interaction, Progress Bars, and Sliders
  24. Chapter 20: Building Dazzling Pages with Tool Sets
  25. Part Five: Node.js in Action
  26. Chapter 21: Introduction to Node.js
  27. Chapter 22: Building the Simplest Web Server
  28. Chapter 23: An HTTP Server Based on the Express Framework
  29. Chapter 24: Building a Socket-Based Chat System

FAQ

这本书有初版和第2版,应该选哪一版?
初版为 2014 年 8 月出版(ISBN 9787302369936,定价 69 元),第 2 版为 2018 年出版(ISBN 9787302498452,定价 89 元),更新了 jQuery 3.x 与 Node.js 相关内容,篇幅也更完整。新读者建议选第 2 版,旧版可作为低价补充。
零基础直接读这本书可以吗?
可以,但需要先具备 HTML 标签和基础 CSS 的概念。本书从 JavaScript 语法讲起,后续章节难度递增,纯零基础读者最好先用一两周熟悉网页结构,再跟着书里的例子动手做。
书里的示例代码现在还能跑起来吗?
大部分原生 JavaScript、HTML5 与 Canvas 示例仍可直接运行;jQuery 与 Node.js 部分因 API 演进可能需要按官方文档调整写法。建议使用较新的浏览器,并在 Node.js 部分参考当前版本的官方教程。
这本书和常见的《JavaScript 高级程序设计》有什么区别?
《JavaScript 高级程序设计》偏重语言规范的深度讲解,本书则以 24 个实例串起前端与后端入门,实践导向更强,更适合作为动手练习和项目参考,而不是语法字典。
学完这本书能达到什么水平?
可以独立完成表单验证、轮播与瀑布流、Canvas 小游戏、jQuery 交互组件以及简单的 Node.js 服务器与聊天室,具备继续学习框架和工程化的基础,但离生产级项目还差工程实践。

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.

Top rated in the same category