7. <!DOCTYPE html>
<html>
<head>
<title>Hi Dart</title>
</head>
<body>
<h2 id="status">Waiting for Dart to start</h2>
<script type="application/dart" src="hi.dart"></
script>
<script src="dart.js"></script>
</body>
</html>
library hi;
import 'dart:html';
main() {
query('#status').text = 'Hi, Dart';
}
<!-- Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file. -->
Example
サンプル