Latte Web

A collection of hands-on web exercises and experiments. Like a latte—one part espresso, two parts milk, and one part foam—a familiar, approachable blend for everyday learning.一组动手实践的 Web 练习与实验。就像一杯拿铁——一份浓缩、两份牛奶、一份奶泡——熟悉、易入口,适合日常学习。

Learn how the web works by building small versions of it: Promise/A+, mini React, a router, a bundler and more. Run a page, follow the guide beside it, then read the code.从零实现一些小版本,看懂 Web 是怎样工作的:Promise/A+、mini React、前端路由、打包器,等等。打开一个页面,跟着旁边的说明一步步看,再去读代码。

Start building开始动手View on GitHub在 GitHub 上查看

74 examples · 872/872 Promises/A+ tests · every page tested in Chromium, Firefox and WebKit74 个示例 · Promises/A+ 测试 872/872 · 每个页面都在 Chromium、Firefox 和 WebKit 中测试

1 foam1 份奶泡2 milk2 份牛奶1 espresso1 份浓缩</>

Fundamentals基础

How JavaScript and the browser behave, one small page at a time.一次一个小页面,看 JavaScript 和浏览器的真实行为。

Build it yourself动手实现

Small, tested versions of tools you use every day.日常工具的小型实现,每一个都有测试。

Build tools构建工具

How source files become something a browser can load.源代码是怎样变成浏览器能加载的文件的。

Applications and experiments应用与实验

Complete applications with old and new versions side by side, plus visual experiments.完整的应用示例(新旧写法并排对照),以及视觉实验。

History历史笔记

Notes kept from earlier years. Read them for context; they are not current advice.早年留下的笔记,用来了解背景,不代表今天的推荐做法。