ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## 想想你已经完成的 这个代码实验室提供了大多数的 Dart 语言特性和许多库的特性概览。想学习更多的话请参考以下资源。 ## Dart 语言 [A Tour of the Dart Language](https://www.dartlang.org/docs/dart-up-and-running/ch02.html) 介绍了如何使用 Dart 基本特性,从变量和运算符到类和库。这个代码实验室介绍了 Dart 的以下特性,这些特性在语言概览中都有详细介绍。 - 字符串插值 (`'$_firstName the $_appellation'`) - 级联运算符 (`..`) - 胖箭头 (`=>`) 函数语法 - 三目运算符 (`?:`) - 命名构造函数 (`PirateName.fromJSON(...)`( - 可选参数 - 类 - getters - 实例方法和属性 - 类方法和属性 - 顶级变量和函数 - 用 _as_ 做类型转换 (`(e.target as InputElement)`) - 导入,带 _show_ 的导入 (`import 'dart:math' show Random;`) - 泛型 - 异步支持(`async and await`) ## 在线文档 ## Dart 库 - [A Tour of the Dart Language](https://www.dartlang.org/docs/dart-up-and-running/ch02.html) 介绍了如何使用 Dart 库的基本特性。 ## 类的API文档 - [String](https://api.dartlang.org/dart_core/String.html), [List](https://api.dartlang.org/dart_core/List.html), [Map](https://api.dartlang.org/dart_core/Map.html), [Random](https://api.dartlang.org/dart_math/Random.html), [InputElement](https://api.dartlang.org/dart_html/InputElement.html), [ButtonElement](https://api.dartlang.org/dart_html/ButtonElement.html), [Event](https://api.dartlang.org/dart_html/Event.html), [HttpRequest](https://api.dartlang.org/dart_html/HttpRequest.html), [Future](https://api.dartlang.org/dart_async/Future.html) 和 [Stream](https://api.dartlang.org/dart_async/Stream.html) ## 库的API文档 - [dart:core](https://api.dartlang.org/dart_core.html), [dart:math](https://api.dartlang.org/dart_math.html), [dart:html](https://api.dartlang.org/dart_html.html), [dart:async](https://api.dartlang.org/dart_async.html) 和 [dart:convert](https://api.dartlang.org/dart_convert.html) ## JSON和本地存储的API文档 - [LocalStorage](https://api.dartlang.org/dart_html/Window.html#localStorage) 和 [JSON](https://api.dartlang.org/dart_convert.html#JSON) ## 反馈 请到 GitHub 上的 [dartlang repo](https://github.com/dart-lang/www.dartlang.org/issues) 提供反馈