登录 注册

You-Dont-Know-JS (你不知道的JavaScript)

去点 Star
教育与学习开发者工具 asyncbookbook-seriesclosureseducationes2015
184,843
Stars
33,334
Forks
5,747
Watchers
2
Open Issues
NOASSERTION
许可证
未知
语言
2013-11-16
创建时间
2026-10-31
最近更新

项目能做什么

深入探讨 JavaScript 语言核心机制与特性的知名经典系列图书。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

项目简介

You Don't Know JS Yet(简称 YDKJSY)是知名 JavaScript 开发者 Kyle Simpson 编写的高口碑技术书系(第二版)。该系列深入剖析 JavaScript 语言的核心底层机制,仓库中提供了完整的开源文本,读者可以在 GitHub 上完全免费阅读。

如果需要查阅第一版内容,可以访问原仓库的 1st-ed 分支。

核心功能

本项目为在线书籍内容,作者推荐的第二版阅读顺序及包含的主题如下:

  • Get Started(入门导读):梳理 JS 的语言全貌与核心思想;
  • Scope & Closures(作用域与闭包):深入剖析词法作用域、提升与闭包等机制;
  • "The Unbooks"(未成册电子书合集):
  • Objects & Classes(对象与类,目前处于稳定草案阶段)
  • Types & Grammar(类型与语法,目前处于初版草案阶段)
  • 注:原定计划中的 Sync & Async 与 ES.Next & Beyond 已经取消编写。

适合谁用

适合希望摆脱对 JavaScript 表面语法的死记硬背、渴望深入探究 JS 语言核心运行机制的个人开发者与前端工程师。

安装步骤

此部分原文未说明,请查看原仓库。

(本项目为纯开源书籍文本,无需进行任何安装。开发者直接在 GitHub 仓库中打开对应章节的 Markdown 文件即可阅读,也可以通过 Leanpub 或 Amazon 购买出版的电子书及实体书。)

配置说明

此部分原文未说明,请查看原仓库。

常见问题

  • 在线阅读需要收费吗? 完全免费。读者可以直接在 GitHub 仓库中在线阅读全文。如果你希望支持作者,可以通过 Leanpub、Amazon 购买出版版本,或者通过 GitHub Sponsorship、Patreon、PayPal 进行赞助。
  • 是否还可以提交 PR 或内容修改? 不可以。该书系历经 11 年的创作现已全部完成,不再接受任何后续贡献(not open to further contributions)。
  • 书籍遵循什么开源协议? 仓库中的所有材料均受版权保护(© 2019-2025 Kyle Simpson),采用 CC BY-NC-ND 4.0(署名-非商业性使用-禁止演绎 4.0 国际许可协议)授权。
原始 README 摘录(英文原文,节选前 3000 字符)
# You Don't Know JS Yet (book series) - 2nd Edition

This is a series of books diving deep into the core mechanisms of the JavaScript language. This is the **second edition** of the book series:

<a href="https://leanpub.com/ydkjsy-get-started"><img src="get-started/images/cover.png" width="75"></a>&nbsp;&nbsp;
<a href="https://leanpub.com/ydkjsy-scope-closures"><img src="scope-closures/images/cover.png" width="75"></a>&nbsp;&nbsp;
<a href="https://leanpub.com/ydkjsy-unbooks"><img src="unbooks-cover.png" width="75"></a>

**To read more about the motivations and perspective behind this book series, check out the [Preface](preface.md).**

If you're looking for the previous **first edition** books, [they can be found here](https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/README.md).

## Titles

I recommend reading the **second edition** books in this order:

* [Get Started](get-started/README.md) | [Buy on Leanpub](https://leanpub.com/ydkjsy-get-started) | [Buy on Amazon](https://www.amazon.com/dp/B084BNMN7T)
* [Scope & Closures](scope-closures/README.md) | [Buy on Leanpub](https://leanpub.com/ydkjsy-scope-closures) | [Buy on Amazon](https://www.amazon.com/dp/B08634PZ3N)
* "The Unbooks" (ebook) | [Buy on Leanpub](https://leanpub.com/ydkjsy-unbooks) | [Buy on Amazon](https://www.amazon.com/dp/B0F7H1DN5S)
    - [Objects & Classes](objects-classes/README.md) (draft stable)
    - [Types & Grammar](types-grammar/README.md) (rough draft)
    - ~~Sync & Async (canceled)~~
    - ~~ES.Next & Beyond (canceled)~~

If you're looking for the previous **first edition** books, [they can be found here](https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/README.md).

## Publishing

As always, you'll be able to read these books online here entirely for free.

This edition of the books is being self-published through [GetiPub](https://geti.pub) publishing. The published books will be made available for sale through normal book retail sources.

If you'd like to contribute financially towards the effort (or any of my other OSS efforts) aside from purchasing the published books, please consider these options:

* [Github Sponsorship](https://github.com/users/getify/sponsorship)
* [Patreon](https://www.patreon.com/getify)
* [Paypal](https://www.paypal.me/getify)

## Contributions

This book series is now complete, and is **not open to further contributions**.

Thank you to those who've been part of the 11 years journey of this book series.

## Thank You To These [Wonderful Sponsors](https://github.com/sponsors/getify)

[![Coddy Logo](https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/external-logos/coddy_logo.png)](https://coddy.tech/?utm_source=github&utm_medium=sponsorship&utm_campaign=ydkjs)

A big thanks to [Coddy](https://coddy.tech/?utm_source=github&utm_medium=sponsorship&utm_campaign=ydkjs), our latest [Project Champion](https://github.com/sponsors/getify) sponsor!

[Coddy is a fantastic resource](https://github.com/coddytech) to learn coding for free 
阅读完整原文

商业机会分析 规则生成(AI 未配置)

综合评分 57.1 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 40.0 分,差异化空间 70.0 分(评分依据见评分卡)。

将 You-Dont-Know-JS 改造为垂直场景 SaaS

产品构想保留核心能力,针对某一类用户(如某行业团队)做托管版,收取月费。
目标用户有该需求的中小团队 / 独立站长
难度/周期较高 · 2~4 周(MVP)
收费模式订阅制(如 ¥29~99/月)
竞争风险需验证付费意愿;注意许可证合规
依据 数据支持的判断:许可证与关键词显示存在商用与付费场景

面向细分需求的二次开发产品

产品构想基于 You-Dont-Know-JS 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
fastapi/fastapi 中文介绍暂未生成
FastAPI framework, high performance, easy to learn, fast to
104,682 Python
TanStack/query 中文介绍暂未生成
🤖 Powerful asynchronous state management, server-state utili
50,561 TypeScript
sxyazi/yazi 中文介绍暂未生成
💥 Blazing fast terminal file manager written in Rust, based
43,347 Rust
koajs/koa 中文介绍暂未生成
Expressive middleware for node.js using ES2017 async functio
35,683 JavaScript
caolan/async 中文介绍暂未生成
Async utilities for node and the browser
28,116 JavaScript
actix/actix-web 中文介绍暂未生成
Actix Web is a powerful, pragmatic, and extremely fast web f
24,948 Rust
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2013-11-16,近 30 天仍在推送
社区活跃Star 184,843 / Fork 33,334 / Issue 2(数据支持,可自行核实)
许可证NOASSERTION
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/getify/You-Dont-Know-JS.git
cd You-Dont-Know-JS
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。