目录

Contents

Dart 语言教程文档

这些指南会教你如何使用 Dart 语言,工具,以及 API 构建应用程序。如果你想要一份体验动手编码的指导,请尝试 codelab

These tutorials teach you how to use the Dart language, tools, and APIs to build applications. If you want a hands-on coding experience, try a codelab.

The basics

通过浏览 language sampleslanguage tour,你可以对 Dart 语言有一个初步了解,并且开始我们的 Dart 学习之旅了。

The following tours assume a basic familiarity with the Dart language, which you can get from skimming the language samples or the language tour. Next, learn about futures by following the asynchronous programming codelab.

当你熟悉该语言后,可以进一步了解 streamsfutures,它们是众多 Dart 程序的基础。接下来你可以开始学习如何安装包——共享代码能使你的学习更加高效。

Once you’re familiar with the language and futures, learn about streams and packages, which are fundamental to most Dart programs.

Asynchronous programming: streams

Use streams to manage sequences of data.

Install shared packages

Organize and share code at the pub.dev site.

Server-side Dart tutorials

The following tutorials show how to develop scripts, command-line apps, and server apps that can run in the standalone Dart VM.

Get started

Get Dart. Create a simple standalone app, run it in the Dart VM, and AOT-compile it to native machine code.

Write command-line apps

Learn about features that command-line apps need.

Write HTTP clients and servers

Use dart:io APIs to communicate over the internet.

Web 应用

Web apps

These tutorials cover topics relevant to Dart web apps.

Fetch data dynamically

Load data from a static file or from a server.

Connect Dart & HTML

Include a Dart script in an HTML page.

Add elements to the DOM

Add elements to the web page and move them.

Remove DOM elements

Delete elements from the web page.

更多学习教程

More tutorials