Skip to Content
学习 JavaScript 设计模式,第二版
book

学习 JavaScript 设计模式,第二版

by Addy Osmani
May 2025
Intermediate to advanced
298 pages
3h 29m
Chinese
O'Reilly Media, Inc.

Overview

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

您想通过将现代设计模式应用到语言中来编写美观、结构合理且易于维护的 JavaScript 代码吗?您想要干净、高效、易于管理的代码吗?想要了解最新的最佳实践吗?如果是的话,那么更新后的《学习 JavaScript 设计模式》第二版是您的理想入门书。

作者 Addy Osmani 向您展示如何将现代设计模式应用于 JavaScript 和 React,包括模块、混合、观察者和中介。您将学习性能和渲染模式,例如服务器端渲染和 Islands 架构。您还将从现代 Web 应用程序开发人员的视角了解 MVC、MVP 和 MVVM 等架构模式的用途。

本书探讨的内容包括:

  • 用于结构化组件和应用程序的架构模式
  • JavaScript 和 React 中的 20 多种设计模式,适用于任何级别的开发人员
  • 不同类别的模式,包括创建型、结构型和行为型
  • 关键性能模式,包括动态导入和代码分割
  • 渲染模式,如服务器端渲染、数据同步(hydration)、Islands架构等

此外,您还将探索现代 JavaScript 语法(如 JavaScript 模块)、React 模式(如 Hooks、高阶组件 (HOC) 等),以在不断发展的 Web 开发领域保持领先地位。

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

图解大模型 : 生成式AI 原理与实战

图解大模型 : 生成式AI 原理与实战

Jay Alammar, Maarten Grootendorst
学习 MySQL,第二版

学习 MySQL,第二版

Vinicius M. Grippa, Sergey Kuzmichev

Publisher Resources

ISBN: 9798341657861